118 lines
23 KiB
JSON
118 lines
23 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "safe-buffer@^5.1.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "safe-buffer",
|
||
|
"name": "safe-buffer",
|
||
|
"rawSpec": "^5.1.1",
|
||
|
"spec": ">=5.1.1 <6.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/request"
|
||
|
]
|
||
|
],
|
||
|
"_from": "safe-buffer@>=5.1.1 <6.0.0",
|
||
|
"_id": "safe-buffer@5.1.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/safe-buffer",
|
||
|
"_nodeVersion": "8.1.2",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/safe-buffer-5.1.1.tgz_1498076368476_0.22441886644810438"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "feross",
|
||
|
"email": "feross@feross.org"
|
||
|
},
|
||
|
"_npmVersion": "5.0.3",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "safe-buffer@^5.1.1",
|
||
|
"scope": null,
|
||
|
"escapedName": "safe-buffer",
|
||
|
"name": "safe-buffer",
|
||
|
"rawSpec": "^5.1.1",
|
||
|
"spec": ">=5.1.1 <6.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/concat-stream/readable-stream",
|
||
|
"/concat-stream/string_decoder",
|
||
|
"/ecdsa-sig-formatter",
|
||
|
"/express",
|
||
|
"/get-uri/readable-stream",
|
||
|
"/get-uri/string_decoder",
|
||
|
"/got",
|
||
|
"/jwa",
|
||
|
"/jws",
|
||
|
"/read-chunk",
|
||
|
"/request",
|
||
|
"/superagent/readable-stream",
|
||
|
"/superagent/string_decoder",
|
||
|
"/tunnel-agent"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
|
||
|
"_shasum": "893312af69b2123def71f57889001671eeb2c853",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "safe-buffer@^5.1.1",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/request",
|
||
|
"author": {
|
||
|
"name": "Feross Aboukhadijeh",
|
||
|
"email": "feross@feross.org",
|
||
|
"url": "http://feross.org"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/feross/safe-buffer/issues"
|
||
|
},
|
||
|
"dependencies": {},
|
||
|
"description": "Safer Node.js Buffer API",
|
||
|
"devDependencies": {
|
||
|
"standard": "*",
|
||
|
"tape": "^4.0.0",
|
||
|
"zuul": "^3.0.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",
|
||
|
"shasum": "893312af69b2123def71f57889001671eeb2c853",
|
||
|
"tarball": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz"
|
||
|
},
|
||
|
"gitHead": "5261e0c19dd820c31dd21cb4116902b0ed0f9e57",
|
||
|
"homepage": "https://github.com/feross/safe-buffer",
|
||
|
"keywords": [
|
||
|
"buffer",
|
||
|
"buffer allocate",
|
||
|
"node security",
|
||
|
"safe",
|
||
|
"safe-buffer",
|
||
|
"security",
|
||
|
"uninitialized"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "feross",
|
||
|
"email": "feross@feross.org"
|
||
|
},
|
||
|
{
|
||
|
"name": "mafintosh",
|
||
|
"email": "mathiasbuus@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "safe-buffer",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# safe-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/safe-buffer/master.svg\n[travis-url]: https://travis-ci.org/feross/safe-buffer\n[npm-image]: https://img.shields.io/npm/v/safe-buffer.svg\n[npm-url]: https://npmjs.org/package/safe-buffer\n[downloads-image]: https://img.shields.io/npm/dm/safe-buffer.svg\n[downloads-url]: https://npmjs.org/package/safe-buffer\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n#### Safer Node.js Buffer API\n\n**Use the new Node.js Buffer APIs (`Buffer.from`, `Buffer.alloc`,\n`Buffer.allocUnsafe`, `Buffer.allocUnsafeSlow`) in all versions of Node.js.**\n\n**Uses the built-in implementation when available.**\n\n## install\n\n```\nnpm install safe-buffer\n```\n\n## usage\n\nThe goal of this package is to provide a safe replacement for the node.js `Buffer`.\n\nIt's a drop-in replacement for `Buffer`. You can use it by adding one `require` line to\nthe top of your node.js modules:\n\n```js\nvar Buffer = require('safe-buffer').Buffer\n\n// Existing buffer code will continue to work without issues:\n\nnew Buffer('hey', 'utf8')\nnew Buffer([1, 2, 3], 'utf8')\nnew Buffer(obj)\nnew Buffer(16) // create an uninitialized buffer (potentially unsafe)\n\n// But you can use these new explicit APIs to make clear what you want:\n\nBuffer.from('hey', 'utf8') // convert from many types to a Buffer\nBuffer.alloc(16) // create a zero-filled buffer (safe)\nBuffer.allocUnsafe(16) // create an uninitialized buffer (potentially unsafe)\n```\n\n## api\n\n### Class Method: Buffer.from(array)\n<!-- YAML\nadded: v3.0.0\n-->\n\n* `array` {Array}\n\nAllocates a new `Buffer` using an `array` of octets.\n\n```js\nconst buf = Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]);\n // creates a new Buffer containing ASCII bytes\n // ['b','u','f','f','e','r']\n```\n\nA `TypeError` will be thrown if `array` is not an `Array`.\n\n### Class Method: Buffer.from(arrayBuffer[, byteOffset[, length]])\n<!-- YAML\nadded: v5.10.0\n-->\n\n* `arrayBuffer` {ArrayBuffer} The `.buffer` property of a `TypedArray` or\n a `new ArrayBuffer()`\n* `byteOffset` {Number} Default: `0`\n* `length` {Number} Default: `arrayBuffer.length - byteOffset`\n\nWhen passed a reference to the `.buffer` property of a `TypedArray` instance,\nthe newly created `Buffer` will share the same allocated memory as the\nTypedArray.\n\n```js\nconst arr = new Uint16Array(2);\narr[0] = 5000;\narr[1] = 4000;\n\nconst buf = Buffer.from(arr.buffer); // shares the memory with arr;\n\nconsole.log(buf);\n // Prints: <Buffer 88 13 a0 0f>\n\n// changing the TypedArray changes the Buffer also\narr[1] = 6000;\n\nconsole.log(buf);\n // Prints: <Buffer 88 13 70 17>\n```\n\nThe optional `byteOffset` and `length` arguments specify a memory range within\nthe `arrayBuffer` that will be shared by the `Buffer`.\n\n```js\nconst ab = new ArrayBuffer(10);\nconst buf = Buffer.from(ab, 0, 2);\nconsole.log(buf.length);\n // Prints: 2\n```\n\nA `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer`.\n\n### Class Method: Buffer.from(buffer)\n<!-- YAML\nadded: v3.0.0\n-->\n\n* `buffer` {Buffer}\n\nCopies the passed `buffer` data onto a new `Buffer` instance.\n\n```js\nconst buf1 = Buffer.from('buffer');\nconst buf2 = Buffer.from(buf1);\n\nbuf1[0] = 0x61;\nconsole.log(buf1.toString());\n // 'auffer'\nconsole.log(buf2.toString());\n // 'buffer' (copy is not changed)\n```\n\nA `TypeError` will be thrown if `buffer` is not a `Buffer`.\n\n### Class Method: Buffer.from(str[, encoding])\n<!-- YAML\nadded: v5.10.0\n-->\n\n* `str` {String} String to encode.\n* `encoding` {String} Encoding to use, Default: `'utf8'`\n\nCreates a new `Buffer` containing the given JavaScript string `str`. If\nprovided, the `encoding` parameter identifies the character encoding.\nIf not provided, `encoding` defaults to `'utf8'`.\n\n```js\ncon
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/feross/safe-buffer.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "standard && tape test.js"
|
||
|
},
|
||
|
"version": "5.1.1"
|
||
|
}
|