{ "_args": [ [ { "raw": "simple-swizzle@^0.2.2", "scope": null, "escapedName": "simple-swizzle", "name": "simple-swizzle", "rawSpec": "^0.2.2", "spec": ">=0.2.2 <0.3.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/color-string" ] ], "_from": "simple-swizzle@>=0.2.2 <0.3.0", "_id": "simple-swizzle@0.2.2", "_inCache": true, "_location": "/simple-swizzle", "_nodeVersion": "0.10.32", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/simple-swizzle-0.2.2.tgz_1479263539219_0.0007823384366929531" }, "_npmUser": { "name": "qix", "email": "i.am.qix@gmail.com" }, "_npmVersion": "2.14.2", "_phantomChildren": {}, "_requested": { "raw": "simple-swizzle@^0.2.2", "scope": null, "escapedName": "simple-swizzle", "name": "simple-swizzle", "rawSpec": "^0.2.2", "spec": ">=0.2.2 <0.3.0", "type": "range" }, "_requiredBy": [ "/color-string" ], "_resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "_shasum": "a4da6b635ffcccca33f70d17cb92592de95e557a", "_shrinkwrap": null, "_spec": "simple-swizzle@^0.2.2", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/color-string", "author": { "name": "Qix", "url": "http://github.com/qix-" }, "bugs": { "url": "https://github.com/qix-/node-simple-swizzle/issues" }, "dependencies": { "is-arrayish": "^0.3.1" }, "description": "Simply swizzle your arguments", "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" }, "directories": {}, "dist": { "shasum": "a4da6b635ffcccca33f70d17cb92592de95e557a", "tarball": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz" }, "files": [ "index.js" ], "gitHead": "54cfffdb7c115c4fc52ce7c2f2af9f6351091c88", "homepage": "https://github.com/qix-/node-simple-swizzle#readme", "keywords": [ "argument", "arguments", "swizzle", "swizzling", "parameter", "parameters", "mixed", "array" ], "license": "MIT", "maintainers": [ { "name": "qix", "email": "i.am.qix@gmail.com" } ], "name": "simple-swizzle", "optionalDependencies": {}, "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", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/qix-/node-simple-swizzle.git" }, "scripts": { "pretest": "xo", "test": "mocha --compilers coffee:coffee-script/register" }, "version": "0.2.2" }