{"_id":"simple-swizzle","_rev":"12-aa3add25a7b7705400bb4b9925293f52","name":"simple-swizzle","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"simple-swizzle","version":"0.1.0","keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"author":{"url":"http://github.com/qix-","name":"Qix"},"license":"MIT","_id":"simple-swizzle@0.1.0","maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"homepage":"https://github.com/qix-/node-simple-swizzle#readme","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"dist":{"shasum":"b7a23842bf04d89bd2d58b1c46f686b32cbb0e5e","tarball":"https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.1.0.tgz","integrity":"sha512-eDMQUN4r95byT0izGBGwK9YLt2jUIXv6IoKmUS6kDeqi9EedXUz/jfIt2IO4wTdkVaGWDZD9Y66SjZ2eJpfO3A==","signatures":[{"sig":"MEUCIGA6OTPj87mGp9r5GaoZgj+TdHOal5XEbAvpdePvHgkiAiEAofwXPkCr5thM24VeNjhpuWqV35TgknacWd4bb/eab6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"b7a23842bf04d89bd2d58b1c46f686b32cbb0e5e","gitHead":"cf1677cf0ebc219b3770cabd226362bfbe4b920f","scripts":{"test":"mocha --compilers coffee:coffee-script/register","pretest":"xo"},"_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"deprecated":"fixed incorrect string handling in 0.2.1","repository":{"url":"git+https://github.com/qix-/node-simple-swizzle.git","type":"git"},"_npmVersion":"3.3.6","description":"Simply swizzle your arguments","directories":{},"_nodeVersion":"4.1.1","devDependencies":{"xo":"^0.7.1","mocha":"^2.2.5","should":"^7.0.1","istanbul":"^0.3.17","coveralls":"^2.11.2","coffee-script":"^1.9.3"}},"0.2.0":{"name":"simple-swizzle","version":"0.2.0","keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"author":{"url":"http://github.com/qix-","name":"Qix"},"license":"MIT","_id":"simple-swizzle@0.2.0","maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"homepage":"https://github.com/qix-/node-simple-swizzle#readme","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"dist":{"shasum":"13a36dc43a8dad7ec4e64f7875cc82c0b69787ba","tarball":"https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.0.tgz","integrity":"sha512-a2bunJuYYiPh7euz7dQzDkrSqmhJNE6i2e2Er9K5xjS0vhc0tXnTPZjgAqtTT7LVEyt7VGFpGwTWqfmAyyCHnQ==","signatures":[{"sig":"MEQCIALSVvzUAztXWGSi2xMprDXiiDHEaJk2i3xvqB0r0amAAiA2XL49ae6K3y5t0An4iToNjdgqZGrcJO6X1tUYzTO+Yw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"13a36dc43a8dad7ec4e64f7875cc82c0b69787ba","scripts":{"test":"mocha --compilers coffee:coffee-script/register","pretest":"xo"},"_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"deprecated":"fixed incorrect string handling in 0.2.1","repository":{"url":"git+https://github.com/qix-/node-simple-swizzle.git","type":"git"},"_npmVersion":"3.3.6","description":"Simply swizzle your arguments","directories":{},"_nodeVersion":"4.1.1","devDependencies":{"xo":"^0.7.1","mocha":"^2.2.5","should":"^7.0.1","istanbul":"^0.3.17","coveralls":"^2.11.2","coffee-script":"^1.9.3"}},"0.2.1":{"name":"simple-swizzle","version":"0.2.1","keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"author":{"url":"http://github.com/qix-","name":"Qix"},"license":"MIT","_id":"simple-swizzle@0.2.1","maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"homepage":"https://github.com/qix-/node-simple-swizzle#readme","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"dist":{"shasum":"3a0cfc11c9cc2be7eb30ea432412353594d7001a","tarball":"https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.1.tgz","integrity":"sha512-QPvz/OBK50yFPR+/HuuFdvOLirr8fEqGL1KoB2lmd3pBmOCxAqReXE8O3oxSyuCbgbDcN+Ac/N55LyTK6CnmkQ==","signatures":[{"sig":"MEYCIQCpaYWX6u4TsWnh1MvYkibAuV858n9S6EQ4q1x6PLKcLwIhAPfFALd+6zrwAdTsHf46rsdzGNJ8FuTvl5YfKye86Tv3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"3a0cfc11c9cc2be7eb30ea432412353594d7001a","gitHead":"db713f065bbe7eeb33f31ca449990b0bdbe9caec","scripts":{"test":"mocha --compilers coffee:coffee-script/register","pretest":"xo"},"_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"repository":{"url":"git+https://github.com/qix-/node-simple-swizzle.git","type":"git"},"_npmVersion":"3.3.6","description":"Simply swizzle your arguments","directories":{},"_nodeVersion":"4.1.1","dependencies":{"is-arrayish":"^0.3.0"},"devDependencies":{"xo":"^0.7.1","mocha":"^2.2.5","should":"^7.0.1","istanbul":"^0.3.17","coveralls":"^2.11.2","coffee-script":"^1.9.3"}},"0.2.2":{"name":"simple-swizzle","version":"0.2.2","keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"author":{"url":"http://github.com/qix-","name":"Qix"},"license":"MIT","_id":"simple-swizzle@0.2.2","maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"homepage":"https://github.com/qix-/node-simple-swizzle#readme","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"dist":{"shasum":"a4da6b635ffcccca33f70d17cb92592de95e557a","tarball":"https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz","integrity":"sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==","signatures":[{"sig":"MEYCIQCihe2Cv6GPkasI/vPaUeY7vnHjdvuZucIx3f36lWbOdgIhAOIIKyJx4tkS/EXkipGMHRN//R6M9vTPFCioaKjG1ZxI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"a4da6b635ffcccca33f70d17cb92592de95e557a","gitHead":"54cfffdb7c115c4fc52ce7c2f2af9f6351091c88","scripts":{"test":"mocha --compilers coffee:coffee-script/register","pretest":"xo"},"_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"repository":{"url":"git+https://github.com/qix-/node-simple-swizzle.git","type":"git"},"_npmVersion":"2.14.2","description":"Simply swizzle your arguments","directories":{},"_nodeVersion":"0.10.32","dependencies":{"is-arrayish":"^0.3.1"},"devDependencies":{"xo":"^0.7.1","mocha":"^2.2.5","should":"^7.0.1","istanbul":"^0.3.17","coveralls":"^2.11.2","coffee-script":"^1.9.3"},"_npmOperationalInternal":{"tmp":"tmp/simple-swizzle-0.2.2.tgz_1479263539219_0.0007823384366929531","host":"packages-18-east.internal.npmjs.com"}},"0.2.4":{"name":"simple-swizzle","description":"Simply swizzle your arguments","version":"0.2.4","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"},"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"},"_id":"simple-swizzle@0.2.4","gitHead":"eb4f9b11182126927dcdc90149a41126c4b846c2","bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"homepage":"https://github.com/qix-/node-simple-swizzle#readme","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==","shasum":"a8d11a45a11600d6a1ecdff6363329e3648c3667","tarball":"https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz","fileCount":4,"unpackedSize":4091,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAa8rUxobcinhs080KirYVHQkqRoF79SKl3LmgMsvIsZAiEA8G2neI5S8jg8VPxz+h9HoRr7yoA/sYGWjvtjcaRUuM8="}]},"_npmUser":{"name":"qix","email":"npm@josh.junon.me"},"directories":{},"maintainers":[{"name":"qix","email":"npm@josh.junon.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/simple-swizzle_0.2.4_1757780360883_0.6346575433013992"},"_hasShrinkwrap":false}},"time":{"created":"2016-01-20T16:04:26.061Z","modified":"2025-09-13T16:19:21.250Z","0.1.0":"2016-01-20T16:04:26.061Z","0.2.0":"2016-01-21T20:43:28.709Z","0.2.1":"2016-01-23T18:00:09.061Z","0.2.2":"2016-11-16T02:32:21.061Z","0.2.3":"2025-09-08T13:19:05.292Z","0.2.4":"2025-09-13T16:19:21.071Z"},"bugs":{"url":"https://github.com/qix-/node-simple-swizzle/issues"},"author":{"name":"Qix","url":"http://github.com/qix-"},"license":"MIT","homepage":"https://github.com/qix-/node-simple-swizzle#readme","keywords":["argument","arguments","swizzle","swizzling","parameter","parameters","mixed","array"],"repository":{"type":"git","url":"git+https://github.com/qix-/node-simple-swizzle.git"},"description":"Simply swizzle your arguments","maintainers":[{"name":"qix","email":"npm@josh.junon.me"}],"readme":"> **NOTE:** ⚠️ **Don't use this package in new projects.** It is a **huge anti-pattern** and will only confuse and annoy people who use whatever code you write with it. I wrote this in a time when Javascript and Node.js were still pretty experimental and clever things like this weren't frowned upon. I've also learned a LOT about proper API design since I wrote this package. DO. NOT. USE. THIS. PACKAGE. If you're reaching for it, please *really* reconsider your API's design.\n\n---\n\n# 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","readmeFilename":"README.md","users":{"flumpus-dev":true}}