{"name":"fn-name","version":"0.2.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":["fn-name.js"],"main":"fn-name.js","repository":{"type":"git","url":"git://github.com/sindresorhus/fn-name"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"engines":{"node":">=0.10.0"},"bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name","_id":"fn-name@0.2.0","dist":{"shasum":"fbe3ef571b0cdc4bf735444440d1c5f1a290cc37","tarball":"http://registry-npm.ywwl.com/fn-name/download/fn-name-0.2.0.tgz","integrity":"sha512-jv0henHKDDc6rKaqPMCFoQp7qgNkUhK8YJvoIn0XvGphM1NsVE3hWZU49wD62JbBYQ/3vpwN4ZWxzXb8lJrsRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJuMUM1c6YFKpRIdAECw8m4M9bUq7aqfQOzgyOZMb8swIhAIcM9fX9Lg1NoGfwvd5XfLbzbNb70hP0N6gc5sNfOOsd"}],"size":1014,"noattachment":false,"key":"/fn-name/-/fn-name-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_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":1398800457589,"_cnpm_publish_time":1398800457589,"dist-tags":{"latest":"4.0.0"}}