{"_id":"fn-name","_rev":"123066","name":"fn-name","description":"Get the name of a named function","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:58:47.000Z","created":"2013-12-01T00:36:50.944Z","4.0.0":"2021-04-07T19:14:45.792Z","3.0.0":"2019-09-10T10:15:31.516Z","2.0.1":"2015-09-25T08:15:27.758Z","2.0.0":"2014-11-27T10:52:43.282Z","1.0.1":"2014-08-13T10:02:25.676Z","0.2.0":"2014-04-29T19:40:57.589Z","0.1.1":"2014-04-29T19:29:44.218Z","0.1.0":"2013-12-01T00:36:50.944Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/fn-name.git"},"versions":{"4.0.0":{"name":"fn-name","version":"4.0.0","description":"Get the name of a named function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fn-name.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["function","func","fn","name"],"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"82e609d528090a8c581d3cab991744d62101aac1","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name#readme","_id":"fn-name@4.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"759c783eecfd063445fbe07665dc9f5e3cef6c0c","size":1746,"noattachment":false,"key":"/fn-name/-/fn-name-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fn-name_4.0.0_1617822885629_0.9069854880454005"},"_hasShrinkwrap":false,"publish_time":1617822885792,"_cnpm_publish_time":1617822885792},"3.0.0":{"name":"fn-name","version":"3.0.0","description":"Get the name of a named function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/fn-name.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["function","func","fn","name"],"devDependencies":{"ava":"^2.3.0","xo":"^0.24.0"},"gitHead":"b21aef2631b9e32d3173e9181e11c5d841a4ad15","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name#readme","_id":"fn-name@3.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0596707f635929634d791f452309ab41558e3c5c","size":1751,"noattachment":false,"key":"/fn-name/-/fn-name-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fn-name_3.0.0_1568110531428_0.9537769241393934"},"_hasShrinkwrap":false,"publish_time":1568110531516,"_cnpm_publish_time":1568110531516},"2.0.1":{"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","size":1588,"noattachment":false,"key":"/fn-name/-/fn-name-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1443168927758,"_cnpm_publish_time":1443168927758,"_hasShrinkwrap":false},"2.0.0":{"name":"fn-name","version":"2.0.0","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":"3c70d87c9c2f5acdee7cf51c8437378b9ce32906","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"homepage":"https://github.com/sindresorhus/fn-name","_id":"fn-name@2.0.0","_shasum":"f1bbc1090c8bc2ae9e08e3db08d6df0e035e8f3f","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"f1bbc1090c8bc2ae9e08e3db08d6df0e035e8f3f","size":912,"noattachment":false,"key":"/fn-name/-/fn-name-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-2.0.0.tgz"},"directories":{},"publish_time":1417085563282,"_cnpm_publish_time":1417085563282,"_hasShrinkwrap":false},"1.0.1":{"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":""}],"dist":{"shasum":"de8d8a15388b33cbf2145782171f73770c6030f0","size":898,"noattachment":false,"key":"/fn-name/-/fn-name-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-1.0.1.tgz"},"directories":{},"publish_time":1407924145676,"_cnpm_publish_time":1407924145676,"_hasShrinkwrap":false},"0.2.0":{"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","size":1014,"noattachment":false,"key":"/fn-name/-/fn-name-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398800457589,"_cnpm_publish_time":1398800457589,"_hasShrinkwrap":false},"0.1.1":{"name":"fn-name","version":"0.1.1","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":"*"},"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.1","dist":{"shasum":"2fef303a4fe943b2d16aec687d8454d637c5edb6","size":1149,"noattachment":false,"key":"/fn-name/-/fn-name-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398799784218,"_cnpm_publish_time":1398799784218,"_hasShrinkwrap":false},"0.1.0":{"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"},"readmeFilename":"readme.md","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","size":1118,"noattachment":false,"key":"/fn-name/-/fn-name-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fn-name/download/fn-name-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1385858210944,"_cnpm_publish_time":1385858210944,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/fn-name#readme","bugs":{"url":"https://github.com/sindresorhus/fn-name/issues"},"license":"MIT"}