{"_id":"simple-swizzle","_rev":"82959","name":"simple-swizzle","description":"Simply swizzle your arguments","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"npm:qix","email":""},{"name":"qix","email":""}],"time":{"modified":"2022-10-18T09:06:37.000Z","created":"2016-01-20T16:04:26.061Z","0.2.2":"2016-11-16T02:32:21.061Z","0.2.1":"2016-01-23T18:00:09.061Z","0.2.0":"2016-01-21T20:43:28.709Z","0.1.0":"2016-01-20T16:04:26.061Z"},"users":{},"author":{"name":"Qix","url":"http://github.com/qix-"},"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"versions":{"0.2.2":{"name":"simple-swizzle","description":"Simply swizzle your arguments","version":"0.2.2","author":{"name":"Qix","url":"http://github.com/qix-"},"keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"dependencies":{"is-arrayish":"^0.3.1"},"gitHead":"54cfffdb7c115c4fc52ce7c2f2af9f6351091c88","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","_id":"simple-swizzle@0.2.2","_shasum":"a4da6b635ffcccca33f70d17cb92592de95e557a","_from":".","_npmVersion":"2.14.2","_nodeVersion":"0.10.32","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"a4da6b635ffcccca33f70d17cb92592de95e557a","size":1920,"noattachment":false,"key":"/simple-swizzle/-/simple-swizzle-0.2.2.tgz","tarball":"http://name.csiicloud.com:7001/simple-swizzle/download/simple-swizzle-0.2.2.tgz"},"maintainers":[{"name":"npm:qix","email":""},{"name":"qix","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/simple-swizzle-0.2.2.tgz_1479263539219_0.0007823384366929531"},"directories":{},"publish_time":1479263541061,"_cnpm_publish_time":1479263541061,"_hasShrinkwrap":false},"0.2.1":{"name":"simple-swizzle","description":"Simply swizzle your arguments","version":"0.2.1","author":{"name":"Qix","url":"http://github.com/qix-"},"keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"dependencies":{"is-arrayish":"^0.3.0"},"gitHead":"db713f065bbe7eeb33f31ca449990b0bdbe9caec","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","_id":"simple-swizzle@0.2.1","_shasum":"3a0cfc11c9cc2be7eb30ea432412353594d7001a","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.1","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"3a0cfc11c9cc2be7eb30ea432412353594d7001a","size":1929,"noattachment":false,"key":"/simple-swizzle/-/simple-swizzle-0.2.1.tgz","tarball":"http://name.csiicloud.com:7001/simple-swizzle/download/simple-swizzle-0.2.1.tgz"},"maintainers":[{"name":"npm:qix","email":""},{"name":"qix","email":""}],"directories":{},"publish_time":1453572009061,"_cnpm_publish_time":1453572009061,"_hasShrinkwrap":false},"0.2.0":{"name":"simple-swizzle","description":"Simply swizzle your arguments","version":"0.2.0","author":{"name":"Qix","url":"http://github.com/qix-"},"keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","_id":"simple-swizzle@0.2.0","_shasum":"13a36dc43a8dad7ec4e64f7875cc82c0b69787ba","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.1","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"13a36dc43a8dad7ec4e64f7875cc82c0b69787ba","size":1942,"noattachment":false,"key":"/simple-swizzle/-/simple-swizzle-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/simple-swizzle/download/simple-swizzle-0.2.0.tgz"},"maintainers":[{"name":"npm:qix","email":""},{"name":"qix","email":""}],"directories":{},"publish_time":1453409008709,"_cnpm_publish_time":1453409008709,"deprecated":"fixed incorrect string handling in 0.2.1","_hasShrinkwrap":false},"0.1.0":{"name":"simple-swizzle","description":"Simply swizzle your arguments","version":"0.1.0","author":{"name":"Qix","url":"http://github.com/qix-"},"keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"gitHead":"cf1677cf0ebc219b3770cabd226362bfbe4b920f","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","_id":"simple-swizzle@0.1.0","_shasum":"b7a23842bf04d89bd2d58b1c46f686b32cbb0e5e","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.1","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"b7a23842bf04d89bd2d58b1c46f686b32cbb0e5e","size":1818,"noattachment":false,"key":"/simple-swizzle/-/simple-swizzle-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/simple-swizzle/download/simple-swizzle-0.1.0.tgz"},"maintainers":[{"name":"npm:qix","email":""},{"name":"qix","email":""}],"directories":{},"publish_time":1453305866061,"_cnpm_publish_time":1453305866061,"deprecated":"fixed incorrect string handling in 0.2.1","_hasShrinkwrap":false}},"readme":"# simple-swizzle [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-simple-swizzle.svg?style=flat-square)](https://travis-ci.org/Qix-/node-simple-swizzle) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-simple-swizzle.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-simple-swizzle)\n\n> [Swizzle](https://en.wikipedia.org/wiki/Swizzling_(computer_graphics)) your function arguments; pass in mixed arrays/values and get a clean array\n\n## Usage\n\n```js\nvar swizzle = require('simple-swizzle');\n\nfunction myFunc() {\n\tvar args = swizzle(arguments);\n\t// ...\n\treturn args;\n}\n\nmyFunc(1, [2, 3], 4); // [1, 2, 3, 4]\nmyFunc(1, 2, 3, 4);   // [1, 2, 3, 4]\nmyFunc([1, 2, 3, 4]); // [1, 2, 3, 4]\n```\n\nFunctions can also be wrapped to automatically swizzle arguments and be passed\nthe resulting array.\n\n```js\nvar swizzle = require('simple-swizzle');\n\nvar swizzledFn = swizzle.wrap(function (args) {\n\t// ...\n\treturn args;\n});\n\nswizzledFn(1, [2, 3], 4); // [1, 2, 3, 4]\nswizzledFn(1, 2, 3, 4);   // [1, 2, 3, 4]\nswizzledFn([1, 2, 3, 4]); // [1, 2, 3, 4]\n```\n\n## License\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).\nYou can find a copy of it in [LICENSE](LICENSE).\n","_attachments":{},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"license":"MIT"}