102 lines
5.6 KiB
JSON
102 lines
5.6 KiB
JSON
{
|
||
"_args": [
|
||
[
|
||
{
|
||
"raw": "base64url@^2.0.0",
|
||
"scope": null,
|
||
"escapedName": "base64url",
|
||
"name": "base64url",
|
||
"rawSpec": "^2.0.0",
|
||
"spec": ">=2.0.0 <3.0.0",
|
||
"type": "range"
|
||
},
|
||
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jws"
|
||
]
|
||
],
|
||
"_from": "base64url@>=2.0.0 <3.0.0",
|
||
"_id": "base64url@2.0.0",
|
||
"_inCache": true,
|
||
"_location": "/base64url",
|
||
"_nodeVersion": "6.2.2",
|
||
"_npmOperationalInternal": {
|
||
"host": "packages-12-west.internal.npmjs.com",
|
||
"tmp": "tmp/base64url-2.0.0.tgz_1468467204479_0.18601951375603676"
|
||
},
|
||
"_npmUser": {
|
||
"name": "brianloveswords",
|
||
"email": "brianloveswords@gmail.com"
|
||
},
|
||
"_npmVersion": "3.9.5",
|
||
"_phantomChildren": {},
|
||
"_requested": {
|
||
"raw": "base64url@^2.0.0",
|
||
"scope": null,
|
||
"escapedName": "base64url",
|
||
"name": "base64url",
|
||
"rawSpec": "^2.0.0",
|
||
"spec": ">=2.0.0 <3.0.0",
|
||
"type": "range"
|
||
},
|
||
"_requiredBy": [
|
||
"/ecdsa-sig-formatter",
|
||
"/jwa",
|
||
"/jws"
|
||
],
|
||
"_resolved": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz",
|
||
"_shasum": "eac16e03ea1438eff9423d69baa36262ed1f70bb",
|
||
"_shrinkwrap": null,
|
||
"_spec": "base64url@^2.0.0",
|
||
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jws",
|
||
"author": {
|
||
"name": "Brian J Brennan"
|
||
},
|
||
"bugs": {
|
||
"url": "https://github.com/brianloveswords/base64url/issues"
|
||
},
|
||
"dependencies": {},
|
||
"description": "For encoding to/from base64urls",
|
||
"devDependencies": {
|
||
"tap": "6.1.1"
|
||
},
|
||
"directories": {},
|
||
"dist": {
|
||
"shasum": "eac16e03ea1438eff9423d69baa36262ed1f70bb",
|
||
"tarball": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz"
|
||
},
|
||
"files": [
|
||
"dist/",
|
||
"typings/",
|
||
"index.js"
|
||
],
|
||
"gitHead": "59b00b9bfa6ca96fb1458f0ebee269dc8f5a14c7",
|
||
"homepage": "https://github.com/brianloveswords/base64url#readme",
|
||
"keywords": [
|
||
"base64",
|
||
"base64url"
|
||
],
|
||
"license": "MIT",
|
||
"main": "index.js",
|
||
"maintainers": [
|
||
{
|
||
"name": "brianloveswords",
|
||
"email": "brian@nyhacker.org"
|
||
}
|
||
],
|
||
"name": "base64url",
|
||
"optionalDependencies": {},
|
||
"readme": "# base64url [![Build Status](https://secure.travis-ci.org/brianloveswords/base64url.png)](http://travis-ci.org/brianloveswords/base64url)\n\nConverting to, and from, [base64url](http://en.wikipedia.org/wiki/Base64#RFC_4648)\n\n# Install\n\n```bash\n$ npm install base64url\n```\n\nAfter installing with `npm` you can require this library from JavaScript or TypeScript:\n\nJavaScript\n```js\nconst base64url = require('base64url');\n```\n\nTypeScript:\n```typescript\nimport base64url from \"base64url\";\n```\n\n# Usage\n\n## CLI\n\nThe CLI has been removed. For the time being, please install `base64url@1.0.6` if you need the CLI.\n\n## Library\n\n### base64url(input: string | Buffer, encoding: string = \"utf8\"): string\n\n### base64url.encode(input: string | Buffer, encoding: string = \"utf8\"): string\n\nbase64url encode `input`. Input should be a `string` or a `Buffer`.\n\n\nExample\n\n```js\n> base64url(\"ladies and gentlemen we are floating in space\")\n'bGFkaWVzIGFuZCBnZW50bGVtYW4sIHdlIGFyZSBmbG9hdGluZyBpbiBzcGFjZQ'\n```\n\n---\n\n### base64url.decode(input: string, encoding: string = \"utf8\"): string\n\nConvert a base64url encoded string into a raw string. The `encoding` argument can be used if the input is a string that's not utf8.\n\n```js\n> base64url.decode(\"cmlkZTogZHJlYW1zIGJ1cm4gZG93bg\")\n'ride: dreams burn down'\n```\n\n---\n\n### base64url.fromBase64(input: string): string\n\nConvert a base64 encoded string to a base64url encoded string.\n\nExample\n\n```js\n> base64url.fromBase64('qL8R4QIcQ/ZsRqOAbeRfcZhilN/MksRtDaErMA==')\n'qL8R4QIcQ_ZsRqOAbeRfcZhilN_MksRtDaErMA'\n```\n\n---\n\n\n### base64url.toBase64(input: string): string\n\nConvert a base64url encoded string to a base64 encoded string.\n\n```js\n> base64url.toBase64('qL8R4QIcQ_ZsRqOAbeRfcZhilN_MksRtDaErMA')\n'qL8R4QIcQ/ZsRqOAbeRfcZhilN/MksRtDaErMA=='\n```\n\n---\n\n\n### base64url.toBuffer(input: string): Buffer\n\nConvert a base64url encoded string to a Buffer containing the decoded bytes.\n\n```js\n> base64url.toBuffer('c3Bpcml0dWFsaXplZA')\n<Buffer 73 70 69 72 69 74 75 61 6c 69 7a 65 64>\n```\n\n# License\n\nMIT\n\n```\nCopyright (c) 2013–2016 Brian J. Brennan\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n",
|
||
"readmeFilename": "readme.md",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "git://github.com/brianloveswords/base64url.git"
|
||
},
|
||
"scripts": {
|
||
"build": "tsc",
|
||
"clean": "rm -f dist/*",
|
||
"prepublish": "npm run test",
|
||
"test": "npm run clean && npm run build && tap test/*.test.js"
|
||
},
|
||
"typings": "dist/base64url.d.ts",
|
||
"version": "2.0.0"
|
||
}
|