{"name":"fn-name","version":"1.0.1","description":"Get the name of a named function","repository":{"type":"git","url":"git://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":"f6250f426d7ebd7009ad5b9dbfef8af8cac666a2","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name","_id":"fn-name@1.0.1","_shasum":"de8d8a15388b33cbf2145782171f73770c6030f0","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"de8d8a15388b33cbf2145782171f73770c6030f0","tarball":"http://registry-npm.ywwl.com/fn-name/download/fn-name-1.0.1.tgz","integrity":"sha512-RRGUv72KOw6s4z27jM6xiB9JZWOoEMQ/D39AOfNdgZmvNbYnrX/ImEGc3oQLnmQaJMyzAIbqLn0Avtzc02y+yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGU39V91tHC+VFng4ZYNFw4RkgZevUu1LKqk0Z4ssQj3AiEA+QfkFZBl+2uEcY9Y0xRy8d3qHXlmkyby8Dqy+tIwcfM="}],"size":898,"noattachment":false,"key":"/fn-name/-/fn-name-1.0.1.tgz"},"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":1407924145676,"_cnpm_publish_time":1407924145676,"dist-tags":{"latest":"4.0.0"}}