90 lines
3.7 KiB
JSON
90 lines
3.7 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "very-fast-args@^1.1.0",
|
|
"scope": null,
|
|
"escapedName": "very-fast-args",
|
|
"name": "very-fast-args",
|
|
"rawSpec": "^1.1.0",
|
|
"spec": ">=1.1.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/lru-memoizer"
|
|
]
|
|
],
|
|
"_from": "very-fast-args@>=1.1.0 <2.0.0",
|
|
"_id": "very-fast-args@1.1.0",
|
|
"_inCache": true,
|
|
"_location": "/very-fast-args",
|
|
"_nodeVersion": "4.4.3",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/very-fast-args-1.1.0.tgz_1490985385546_0.626196205848828"
|
|
},
|
|
"_npmUser": {
|
|
"name": "jfromaniello",
|
|
"email": "jfromaniello@gmail.com"
|
|
},
|
|
"_npmVersion": "2.15.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "very-fast-args@^1.1.0",
|
|
"scope": null,
|
|
"escapedName": "very-fast-args",
|
|
"name": "very-fast-args",
|
|
"rawSpec": "^1.1.0",
|
|
"spec": ">=1.1.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/lru-memoizer"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/very-fast-args/-/very-fast-args-1.1.0.tgz",
|
|
"_shasum": "e16d1d1faf8a6e596a246421fd90a77963d0b396",
|
|
"_shrinkwrap": null,
|
|
"_spec": "very-fast-args@^1.1.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/lru-memoizer",
|
|
"author": {
|
|
"name": "José F. Romaniello",
|
|
"email": "jfromaniello@gmail.com",
|
|
"url": "http://joseoncode.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/jfromaniello/very-fast-args/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "A very fast way to convert arguments into array.",
|
|
"devDependencies": {
|
|
"bench": "^0.3.6",
|
|
"fast-args": "^1.0.0",
|
|
"mocha": "~2.2.5"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "e16d1d1faf8a6e596a246421fd90a77963d0b396",
|
|
"tarball": "https://registry.npmjs.org/very-fast-args/-/very-fast-args-1.1.0.tgz"
|
|
},
|
|
"gitHead": "b320adc705ae166e072544dd8717310f52415b83",
|
|
"homepage": "https://github.com/jfromaniello/very-fast-args#readme",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "jfromaniello",
|
|
"email": "jfromaniello@gmail.com"
|
|
}
|
|
],
|
|
"name": "very-fast-args",
|
|
"optionalDependencies": {},
|
|
"readme": "Very fast way of converting \"arguments\" into array.\n\nThis module does the same than [fast-args](https://github.com/jamen/fast-args), the only difference is that you can call this with `apply`.\n\nUsing `function.apply(null, arguments)` works on the optimizing compiler while using `function(arguments)` generates a leaks of the arguments object and prevent optimizations.\n\nThis module uses [rest parameters](https://developer.mozilla.org/docs/Web/JavaScript/Referencia/Funciones/parametros_rest) if supported by the javascript engine.\n\n## Installation\n\n```\nnpm i --save very-fast-args\n```\n\n## Usage\n\n```javascript\n\nconst fargs = require('very-fast-args');\n\nfunction myFunc() {\n const args = fargs.apply(null, arguments);\n //do something with args.\n}\n```\n\nAlways use `fargs.apply(null, arguments)` and do not use `fargs(arguments)`.\n\n## Test about optimization\n\nYou can test the behavior of the compiler as follows:\n\n```\n» node --trace-deopt --trace-opt bench/simple.js | grep arguments\n» node --trace-deopt --trace-opt bench/simple-with-fa.js | grep arguments\n[disabled Crankshaft for 0x384b6486d409 <SharedFunctionInfo withVeryFastArgs>, reason: Bad value context for arguments value]\n```\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"url": "git://github.com/jfromaniello/very-fast-args.git"
|
|
},
|
|
"scripts": {
|
|
"bench": "node bench",
|
|
"test": "mocha"
|
|
},
|
|
"version": "1.1.0"
|
|
}
|