forked from mirrors/action-gh-release
node_modules
This commit is contained in:
parent
2984051a42
commit
b28d8151ad
445 changed files with 83959 additions and 1 deletions
6
node_modules/btoa-lite/.npmignore
generated
vendored
Normal file
6
node_modules/btoa-lite/.npmignore
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
node_modules
|
||||
*.log
|
||||
.DS_Store
|
||||
bundle.js
|
||||
test
|
||||
test.js
|
18
node_modules/btoa-lite/LICENSE.md
generated
vendored
Normal file
18
node_modules/btoa-lite/LICENSE.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
This software is released under the MIT license:
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
37
node_modules/btoa-lite/README.md
generated
vendored
Normal file
37
node_modules/btoa-lite/README.md
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
# btoa-lite
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Smallest/simplest possible means of using btoa with both Node and browserify.
|
||||
|
||||
In the browser, encoding base64 strings is done using:
|
||||
|
||||
``` javascript
|
||||
var encoded = btoa(decoded)
|
||||
```
|
||||
|
||||
However in Node, it's done like so:
|
||||
|
||||
``` javascript
|
||||
var encoded = new Buffer(decoded).toString('base64')
|
||||
```
|
||||
|
||||
You can easily check if `Buffer` exists and switch between the approaches
|
||||
accordingly, but using `Buffer` anywhere in your browser source will pull
|
||||
in browserify's `Buffer` shim which is pretty hefty. This package uses
|
||||
the `main` and `browser` fields in its `package.json` to perform this
|
||||
check at build time and avoid pulling `Buffer` in unnecessarily.
|
||||
|
||||
## Usage
|
||||
|
||||
[](https://nodei.co/npm/btoa-lite/)
|
||||
|
||||
### `encoded = btoa(decoded)`
|
||||
|
||||
Returns the base64-encoded value of a string.
|
||||
|
||||
## License
|
||||
|
||||
MIT. See [LICENSE.md](http://github.com/hughsk/btoa-lite/blob/master/LICENSE.md) for details.
|
3
node_modules/btoa-lite/btoa-browser.js
generated
vendored
Normal file
3
node_modules/btoa-lite/btoa-browser.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function _btoa(str) {
|
||||
return btoa(str)
|
||||
}
|
3
node_modules/btoa-lite/btoa-node.js
generated
vendored
Normal file
3
node_modules/btoa-lite/btoa-node.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function btoa(str) {
|
||||
return new Buffer(str).toString('base64')
|
||||
}
|
69
node_modules/btoa-lite/package.json
generated
vendored
Normal file
69
node_modules/btoa-lite/package.json
generated
vendored
Normal file
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"btoa-lite@1.0.0",
|
||||
"/Users/dougtangren/code/rust/action-gh-release"
|
||||
]
|
||||
],
|
||||
"_from": "btoa-lite@1.0.0",
|
||||
"_id": "btoa-lite@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc=",
|
||||
"_location": "/btoa-lite",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "btoa-lite@1.0.0",
|
||||
"name": "btoa-lite",
|
||||
"escapedName": "btoa-lite",
|
||||
"rawSpec": "1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@octokit/rest"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz",
|
||||
"_spec": "1.0.0",
|
||||
"_where": "/Users/dougtangren/code/rust/action-gh-release",
|
||||
"author": {
|
||||
"name": "Hugh Kennedy",
|
||||
"email": "hughskennedy@gmail.com",
|
||||
"url": "http://hughsk.io/"
|
||||
},
|
||||
"browser": "btoa-browser.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/hughsk/btoa-lite/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Smallest/simplest possible means of using btoa with both Node and browserify",
|
||||
"devDependencies": {
|
||||
"browserify": "^10.2.4",
|
||||
"smokestack": "^3.3.0",
|
||||
"tap-spec": "^4.0.0",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"homepage": "https://github.com/hughsk/btoa-lite",
|
||||
"keywords": [
|
||||
"btoa",
|
||||
"base64",
|
||||
"isomorphic",
|
||||
"browser",
|
||||
"node",
|
||||
"shared"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "btoa-node.js",
|
||||
"name": "btoa-lite",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/hughsk/btoa-lite.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run test-node && npm run test-browser",
|
||||
"test-browser": "browserify test | smokestack | tap-spec",
|
||||
"test-node": "node test | tap-spec"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue