{"name":"fn-name","version":"0.1.0","description":"Get the name of a named function","keywords":["function","func","fn","name"],"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["function-name.js"],"main":"function-name.js","repository":{"type":"git","url":"git://github.com/sindresorhus/function-name"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.14.0"},"engines":{"node":">=0.8.0"},"bugs":{"url":"https://github.com/sindresorhus/function-name/issues"},"homepage":"https://github.com/sindresorhus/function-name","_id":"fn-name@0.1.0","dist":{"shasum":"6198d9d6b91162fbc5fe4b1aa62bd7543ffd5cd5","tarball":"http://registry-npm.ywwl.com/fn-name/download/fn-name-0.1.0.tgz","integrity":"sha512-ZWKJMEvnxMT2ey0esIdObkZggYltagMj7rBkR08W2urO94iyZ1pFXUEWkUJsTnl9vu15VMkeN+Scpd3X9fPHZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHeMRK1UkUJwQYqlqX0f31PFaE/1qM936HGu767A2EQTAiBPNI+hv8xibuIYgsKrIA8MVRzTGKRUKTlcma5ZDnEYYA=="}],"size":1118,"noattachment":false,"key":"/fn-name/-/fn-name-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# fn-name\n\n> Get the name of a named function\n\nThere is a [`name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) property on functions, but it's not supported in all browsers. This module tries that property then falls back to extracting the name from the function source.\n\n## Install\n\n```\n$ npm install fn-name\n```\n\n## Usage\n\n```js\nimport functionName from 'fn-name';\n\nfunctionName(function foo() {});\n//=> 'foo'\n```\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-fn-name?utm_source=npm-fn-name&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1385858210944,"_cnpm_publish_time":1385858210944,"dist-tags":{"latest":"4.0.0"}}