{"name":"function-arguments","version":"1.0.6","description":"Get arguments of a function, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow functions.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/function-arguments.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"lint":"standard --verbose","pretest":"npm run lint","test":"npm run coverage","posttest":"npm run lint:coverage","coverage":"nyc node test.js","lint:coverage":"nyc check-coverage --statements 100 --functions 100 --lines 100","report-coverage":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{"arr-map":"^2.0.0"},"devDependencies":{"coveralls":"^2.11.14","mukla":"^0.4.4","nyc":"^8.3.0","pre-commit":"^1.1.3","standard":"^8.1.0"},"files":["index.js"],"keywords":["args","arguments","arrow","arrow-function","arrows","dependency","deps","fn","func","function","function-arguments","generator","generators","get","inject","injectors","parameters","params","regular","useful"],"verb":{"run":true,"toc":false,"layout":"empty","tasks":["readme"],"related":{"list":["parse-function","get-fn-name","fn-name","flatten-arguments","handle-arguments","manage-arguments","fn-args"]},"lint":{"reflinks":true},"reflinks":["fn-name","is-callback-function","sliced"]},"gitHead":"9f411a620ad4e000932498d23f9fe8e7e1ff62f6","bugs":{"url":"https://github.com/tunnckocore/function-arguments/issues"},"homepage":"https://github.com/tunnckocore/function-arguments#readme","_id":"function-arguments@1.0.6","_shasum":"bc75b02a5f5ac6ce8a7b53de5bc9b51681304580","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"bc75b02a5f5ac6ce8a7b53de5bc9b51681304580","tarball":"http://registry-npm.ywwl.com/function-arguments/download/function-arguments-1.0.6.tgz","integrity":"sha512-0IoUFJjH+jBbOjgmjIR5QtNalzHGGH9XaHiOrVDGVthnfJG4kPeTPwIpDQkJi9/d+WMtNcMxZl4i9H7mhMLdYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMZOlAtf4KZnZS+NWY1/kjSTiQhJzdIO+muTVYarSSiAiEA4L0FuWalIhtc+2fXrWJZuwJ2QkIMn+Tj197NSxExItc="}],"size":4340,"noattachment":false,"key":"/function-arguments/-/function-arguments-1.0.6.tgz"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function-arguments-1.0.6.tgz_1474422980329_0.6037846577819437"},"directories":{},"readme":"# function-arguments [![npm version][npmv-img]][npmv-url] [![github release][github-release-img]][github-release-url] [![License][license-img]][license-url]\n\n> Get arguments of a function, useful for and used in dependency injectors. Works for regular functions, generator functions and arrow functions.\n\n[![code style][standard-img]][standard-url]\n[![linux build][travis-img]][travis-url]\n[![code coverage][coverage-img]][coverage-url]\n[![dependency status][david-img]][david-url]\n[![npm downloads][downloads-img]][downloads-url]\n[![paypal donate][paypalme-img]][paypalme-url]\n\n## Install\n> Install with [npm](https://www.npmjs.com/)\n\n```\n$ npm i function-arguments --save\n```\n\n_**Important:** for more advanced stuff please use [parse-function][], don't suggest features or complex bugs._\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nconst functionArguments = require('function-arguments')\n```\n\n## API\n\n### [functionArguments](index.js#L33)\n> Get function arguments names.\n\n**Params**\n\n* `fn` **{Function}**: Function from which to get arguments names.\n* `returns` **{Array}**\n\n**Example**\n\n```js\nvar fnArgs = require('function-arguments')\n\nconsole.log(fnArgs(function (a, b, c) {})) // => [ 'a', 'b', 'c' ]\nconsole.log(fnArgs(function named (a , b, c) {})) // => [ 'a', 'b', 'c' ]\n\nconsole.log(fnArgs(a => {})) // => [ 'a' ]\nconsole.log(fnArgs((a, b) => {})) // => [ 'a', 'b' ]\n\nconsole.log(fnArgs(function * (a ,b, c) {})) // => [ 'a', 'b', 'c' ]\nconsole.log(fnArgs(function * named (a ,b, c) {})) // => [ 'a', 'b', 'c' ]\n```\n\n### Works when using comments\n> As it works for ES2015, it also works if you use comments in weird places.\n\n```js\nconsole.log(fnArgs(function /* something may */ (\n  // go,\n  go,\n  /* wrong, */\n  here\n  // (when, using, comments) {}\n) { return 1 })) // => [ 'go', 'here' ]\n```\n\n## Related\n- [flatten-arguments](https://www.npmjs.com/package/flatten-arguments): Fastest, simplest and smallest. Pass `arguments` object or list of… [more](https://github.com/tunnckocore/flatten-arguments#readme) | [homepage](https://github.com/tunnckocore/flatten-arguments#readme \"Fastest, simplest and smallest. Pass `arguments` object or list of arguments and get flattened array.\")\n- [fn-args](https://www.npmjs.com/package/fn-args): Get the arguments of a function | [homepage](https://github.com/sindresorhus/fn-args \"Get the arguments of a function\")\n- [fn-name](https://www.npmjs.com/package/fn-name): Get the name of a named function | [homepage](https://github.com/sindresorhus/fn-name \"Get the name of a named function\")\n- [get-fn-name](https://www.npmjs.com/package/get-fn-name): Get function name with strictness and correctness in mind. Also… [more](https://github.com/tunnckocore/get-fn-name#readme) | [homepage](https://github.com/tunnckocore/get-fn-name#readme \"Get function name with strictness and correctness in mind. Also works for arrow functions and getting correct name of bounded functions. Powered by [fn-name][].\")\n- [handle-arguments](https://www.npmjs.com/package/handle-arguments): Get separately non-callback arguments in `.arguments` and the last argument… [more](https://github.com/hybridables/handle-arguments#readme) | [homepage](https://github.com/hybridables/handle-arguments#readme \"Get separately non-callback arguments in `.arguments` and the last argument if it [is-callback-function][] in `.callback`. It also works like [sliced][], but returns object with `.arguments` and `.callback` properties.\")\n- [manage-arguments](https://www.npmjs.com/package/manage-arguments): Prevents arguments leakage - managing arguments. From Optimization killers by… [more](https://github.com/tunnckocore/manage-arguments#readme) | [homepage](https://github.com/tunnckocore/manage-arguments#readme \"Prevents arguments leakage - managing arguments. From Optimization killers by Petka Antonov.\")\n- [parse-function](https://www.npmjs.com/package/parse-function): Parse a function, arrow function or string to object with… [more](https://github.com/tunnckocore/parse-function#readme) | [homepage](https://github.com/tunnckocore/parse-function#readme \"Parse a function, arrow function or string to object with name, args, params and body properties.\")\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/function-arguments/issues/new).\nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n[fn-name]: https://github.com/sindresorhus/fn-name\n[is-callback-function]: https://github.com/tunnckocore/is-callback-function\n[sliced]: https://github.com/aheckmann/sliced\n\n[downloads-url]: https://www.npmjs.com/package/function-arguments\n[downloads-img]: https://img.shields.io/npm/dm/function-arguments.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/function-arguments\n[travis-img]: https://img.shields.io/travis/tunnckoCore/function-arguments/master.svg\n\n[coverage-url]: https://coveralls.io/r/tunnckoCore/function-arguments\n[coverage-img]: https://img.shields.io/coveralls/tunnckoCore/function-arguments.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/function-arguments\n[david-img]: https://img.shields.io/david/tunnckoCore/function-arguments.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg\n\n<!-- -->\n\n[paypalme-url]: https://ko-fi.com/tunnckoCore\n[paypalme-img]: https://img.shields.io/badge/support-donate-brightgreen.svg\n\n[npmv-url]: https://www.npmjs.com/package/function-arguments\n[npmv-img]: https://img.shields.io/npm/v/function-arguments.svg?label=npm%20version\n\n[github-release-url]: https://github.com/tunnckoCore/function-arguments/releases/latest\n[github-release-img]: https://img.shields.io/github/tag/tunnckoCore/function-arguments.svg?label=github%20tag\n\n[license-url]: https://github.com/tunnckoCore/function-arguments/blob/master/LICENSE\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n[parse-function]: https://tunnckocore.com/opensource","publish_time":1474422982332,"_cnpm_publish_time":1474422982332,"dist-tags":{"latest":"1.0.9"}}