{"_id":"arguments-extended","_rev":"3221147","name":"arguments-extended","description":"Utilities for working with arguments object","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"damartin","email":"doug@dougamartin.com"}],"time":{"modified":"2024-03-21T07:22:20.000Z","created":"2013-05-10T16:52:37.958Z","0.0.3":"2013-06-06T21:24:22.599Z","0.0.2":"2013-06-05T05:19:30.667Z","0.0.1":"2013-05-10T16:52:37.958Z"},"users":{},"author":{"name":"Doug Martin"},"repository":{"type":"git","url":"git@github.com:doug-martin/arguments-extended.git"},"versions":{"0.0.3":{"name":"arguments-extended","version":"0.0.3","description":"Utilities for working with arguments object","main":"index.js","scripts":{"test":"it -r dotmatrix"},"repository":{"type":"git","url":"git@github.com:doug-martin/arguments-extended.git"},"keywords":["arguments","utils","extended","extender","monad","monads"],"testling":{"files":"test/browserling.js","browsers":["ie/8..latest","chrome/20..latest","firefox/14..latest","safari/latest","iphone/6","ipad/6"]},"author":{"name":"Doug Martin"},"license":"MIT","dependencies":{"extended":"~0.0.3","is-extended":"~0.0.8"},"devDependencies":{"it":"~0.2.0","grunt-it":"~0.3.0","grunt":"~0.4.1","grunt-contrib-uglify":"~0.2.0","grunt-contrib-jshint":"~0.3.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/doug-martin/arguments-extended/issues"},"_id":"arguments-extended@0.0.3","dist":{"shasum":"6107e4917d0eb6f0a4dd66320fc15afc72ef4946","size":4144,"noattachment":false,"key":"/arguments-extended/-/arguments-extended-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/arguments-extended/download/arguments-extended-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"damartin","email":"doug@dougamartin.com"},"maintainers":[{"name":"damartin","email":"doug@dougamartin.com"}],"directories":{},"publish_time":1370553862599,"_hasShrinkwrap":false,"_cnpm_publish_time":1370553862599,"_cnpmcore_publish_time":"2021-12-16T15:42:35.141Z"},"0.0.2":{"name":"arguments-extended","version":"0.0.2","description":"Utilities for working with arguments object","main":"index.js","scripts":{"test":"it -r dotmatrix"},"repository":{"type":"git","url":"git@github.com:doug-martin/arguments-extended.git"},"keywords":["arguments","utils","extended","extender","monad","monads"],"testling":{"files":"test/browserling.js","browsers":["ie/8..latest","chrome/20..latest","firefox/14..latest","safari/latest","iphone/6","ipad/6"]},"author":{"name":"Doug Martin"},"license":"MIT","dependencies":{"extended":"~0.0.3","is-extended":"~0.0.8"},"devDependencies":{"it":"~0.2.0","grunt-it":"~0.3.0","grunt":"~0.4.1","grunt-contrib-uglify":"~0.2.0","grunt-contrib-jshint":"~0.3.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/doug-martin/arguments-extended/issues"},"_id":"arguments-extended@0.0.2","dist":{"shasum":"fc10b2b42aaaed95334cee57b50b6c1fc752fe21","size":4100,"noattachment":false,"key":"/arguments-extended/-/arguments-extended-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/arguments-extended/download/arguments-extended-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"damartin","email":"doug@dougamartin.com"},"maintainers":[{"name":"damartin","email":"doug@dougamartin.com"}],"directories":{},"publish_time":1370409570667,"_hasShrinkwrap":false,"_cnpm_publish_time":1370409570667,"_cnpmcore_publish_time":"2021-12-16T15:42:35.355Z"},"0.0.1":{"name":"arguments-extended","version":"0.0.1","description":"Utilities for working with arguments object","main":"index.js","scripts":{"test":"it -r dotmatrix"},"repository":{"type":"git","url":"git@github.com:doug-martin/arguments-extended.git"},"keywords":["arguments","utils","extended","extender","monad","monads"],"testling":{"files":"test/browserling.js","browsers":["ie/8..latest","chrome/20..latest","firefox/14..latest","safari/latest","iphone/6","ipad/6"]},"author":{"name":"Doug Martin"},"license":"MIT","dependencies":{"extended":"~0.0.3","is-extended":"~0.0.8"},"devDependencies":{"it":"~0.2.0","grunt-it":"~0.3.0","grunt":"~0.4.1","grunt-contrib-uglify":"~0.2.0","grunt-contrib-jshint":"~0.3.0"},"readmeFilename":"README.md","_id":"arguments-extended@0.0.1","dist":{"shasum":"c9ddfe9956ef3366278ff680c2dfb296dfe94685","size":4085,"noattachment":false,"key":"/arguments-extended/-/arguments-extended-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arguments-extended/download/arguments-extended-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"damartin","email":"doug@dougamartin.com"},"maintainers":[{"name":"damartin","email":"doug@dougamartin.com"}],"directories":{},"publish_time":1368204757958,"_hasShrinkwrap":false,"_cnpm_publish_time":1368204757958,"_cnpmcore_publish_time":"2021-12-16T15:42:35.547Z"}},"readme":"[![Build Status](https://travis-ci.org/doug-martin/arguments-extended.png?branch=master)](https://travis-ci.org/doug-martin/arguments-extended)\n\n[![browser support](https://ci.testling.com/doug-martin/arguments-extended.png)](http://ci.testling.com/doug-martin/arguments-extended)\n\n# arguments-extended\n\n`arguments-extended` is a Javascript library that provides utilities for working with the arguments object. `arguments-extended` can be used as a monad library or each function can be used standalone.\n\n`arguments-extended` can be used standalone or incorporated into [`extended`](https://github.com/doug-martin/extended)\n\n```javascript\nvar args = require(\"arguments-extended\");\n```\n\nOr\n\n```javascript\nvar args = require(\"extended\")\n\t.register(require(\"arguments-extended\"));\n```\n\n## Installation\n\n```\nnpm install arguments-extended\n```\n\nOr [download the source](https://raw.github.com/doug-martin/arguments-extended/master/index.js) ([minified](https://raw.github.com/doug-martin/arguments-extended/master/arguments-extended.min.js))\n\n## Usage\n\n**`toArray() argsToArray()`**\n\nFunction to convert arguments to an array. If you are using `arguments-extended` as a monad use the `toArray` method, if your using the standalone method use `argsToArray`\n\nTo use as a monad.\n\n```javascript\n\nfunction argsToArray(){\n    return args(arguments).toArray().value();\n}\n\nargsToArray(\"a\", \"b\", \"c\"); //[\"a\", \"b\", \"c\"];\n\n```\n\nTo use a a function\n\n```javascript\n\nfunction argsToArray(){\n    return args.argsToArray(arguments);\n}\n\nargsToArray(\"a\", \"b\", \"c\"); //[\"a\", \"b\", \"c\"];\n\n```\n\nYou may also specify a `slice` argument to slice a number of arguments off of the front of returned array\n\n\n```javascript\n\nfunction argsToArray(){\n    return args(arguments).toArray(1).value();\n}\n\nargsToArray(\"a\", \"b\", \"c\"); //[\"b\", \"c\"];\n\n```\n\n```javascript\n\nfunction argsToArray(){\n    return args.argsToArray(arguments, 1);\n}\n\nargsToArray(\"a\", \"b\", \"c\"); //[\"b\", \"c\"];\n\n```","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/doug-martin/arguments-extended/issues"},"license":"MIT"}