{"_id":"argsarray","_rev":"4-a4237a3f8367beaa984bbed6b42ea209","name":"argsarray","description":"get arguments to a function as an array, withouth deoptimizing","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"argsarray","version":"0.0.1","description":"get arguments to a function as an array, withouth deoptimizing","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/test.*.js | tspec"},"repository":{"type":"git","url":"git://github.com/calvinmetcalf/argsarray.git"},"keywords":["arguments","args"],"author":{"name":"Calvin Metcalf"},"license":"WTFPL","bugs":{"url":"https://github.com/calvinmetcalf/argsarray/issues"},"homepage":"https://github.com/calvinmetcalf/argsarray","devDependencies":{"tape":"^2.10.2","glob":"^3.2.9","tap-spec":"^0.1.5"},"_id":"argsarray@0.0.1","dist":{"shasum":"6e7207b4ecdb39b0af88303fa5ae22bda8df61cb","tarball":"https://registry.npmjs.org/argsarray/-/argsarray-0.0.1.tgz","integrity":"sha512-u96dg2GcAKtpTrBdDoFIM7PjcBA+6rSP0OR94MOReNRyUECL6MtQt5XXmRr4qrftYaef9+l5hcpO5te7sML1Cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEF/Ww28RMtZ6nSZKvAptDJzZdwrGaCv+rye2AQ52nbKAiEA1Ty8Exx/lwUC6M1rOSsy6uKdshFPaPhnYGKE1ESoRk8="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}]}},"readme":"args array [![Build Status](https://travis-ci.org/calvinmetcalf/argsarray.png)](https://travis-ci.org/calvinmetcalf/argsarray)\n===\n\n```bash\nnpm install argsarray\n```\n\nsimple library to treat function arguments as an array without leaking the arguments object ([which is bad](https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments)), based on something I wrote for [PouchDB](https://github.com/daleharvey/pouchdb).\n\nSimple wrap a function in this and the function will always be called with an array of the arguments it was called with.\n\n```js\nvar myFunc = argsarray(function myFunc(args) {\n  console.log(args);\n});\n\nmyFunc(a, b, c);\n//[a, b, c];\n```\n\n#license\n\nwtfpl","maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"time":{"modified":"2022-06-13T03:26:27.349Z","created":"2014-03-19T16:52:40.806Z","0.0.1":"2014-03-19T16:52:40.806Z"},"homepage":"https://github.com/calvinmetcalf/argsarray","keywords":["arguments","args"],"repository":{"type":"git","url":"git://github.com/calvinmetcalf/argsarray.git"},"author":{"name":"Calvin Metcalf"},"bugs":{"url":"https://github.com/calvinmetcalf/argsarray/issues"},"license":"WTFPL","readmeFilename":"readme.md"}