{"name":"fn-name","version":"2.0.1","description":"Get the name of a named function","repository":{"type":"git","url":"https://github.com/sindresorhus/fn-name"},"keywords":["function","func","fn","name"],"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["index.js"],"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"engines":{"node":">=0.10.0"},"gitHead":"4e7e99e94301e20cf9a919d01688848e0b9d09ef","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name","_id":"fn-name@2.0.1","_shasum":"5214d7537a4d06a4a301c0cc262feb84188002e7","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5214d7537a4d06a4a301c0cc262feb84188002e7","tarball":"http://registry-npm.ywwl.com/fn-name/download/fn-name-2.0.1.tgz","integrity":"sha512-oIDB1rXf3BUnn00bh2jVM0byuqr94rBh6g7ZfdKcbmp1we2GQtPzKdloyvBXHs+q3fvxB8EqX5ecFba3RwCSjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4cROkLw7UqQ57Y/oiXm6ODtP+Yf/K4Nlz2cw4z2XYyAiEA58EnAWUZE5ZL8l4eJHpx48p2iQvtDN/RMUbmvDayY4c="}],"size":1588,"noattachment":false,"key":"/fn-name/-/fn-name-2.0.1.tgz"},"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":1443168927758,"_cnpm_publish_time":1443168927758,"dist-tags":{"latest":"4.0.0"}}