{"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":{"integrity":"sha512-VU5XlXbcEgKhr3uI9I8JcWaTFiGKUfenmF3qhbBtnMF3EuJOE+4L2RUwsm9GZ+r0j5TEHO+3oR9ypVq9wy6VEQ==","shasum":"759c783eecfd063445fbe07665dc9f5e3cef6c0c","tarball":"http://registry-npm.ywwl.com/fn-name/download/fn-name-4.0.0.tgz","fileCount":4,"unpackedSize":2871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbgSmCRA9TVsSAnZWagAAYWEP/RrCW3lDqQLDCJbmmWFE\nTbDans50ivMM36/p1Lji1AGDTRDIU9jgu5G4rcx8/yGjuEdhXedHDIFnbne6\nnUAgHxn+DaYljmEs6cKOGS7ILGiiVkhUWoYato/FTxXZHlptkUqiItDw/L70\nCMnwI7j/adMm8n+hzz/CXKIUxu95Pph6EPMJbBGNKJr/SkD3AwYCVNZxMipP\nvJQCmzg86Wylir+IDe4bFb9SGBjFC5Cfpo6M7qjM5dAhtFPQGhpNwaClD57e\nrkltm7q5oVdPOIbme5+Pk1dlwuJ2iyZEPTozLd07Yr+0DdTQC6sQEViDC0nj\nf0miqBff2TGeKFPzrScyAI4jwQtHD70QuhwjZ0ZP+Ogc6H43lGmHIEStF7PF\numEr4BP68ukp2g9kQ1/r60p3EWFI+ClF41e77ginClCzivGKj7fO7d0Wr+o4\n9zdxvSgwaNqGIiH0I2Va7ner4KkmEfGwKUtZFBqfc/lzksRiPhZrFymivOT5\ngAzcjaBGkopHLuCKOV/HX7crNn4/hs6a4baP/anJRakFRRDIrL6GGvW+bvza\nNB89JSpDMQo2v106V7HQ+j9PkceQJk1+b0qe7CexNAG9Oj64dwXDnOxpxZlE\n6HlXsaOX3BXXFQ6F2VzjqFRp+uAnL6PKIsp3jrnhvGmejIW5e5kvTDij9c4h\n3FMF\r\n=D3YR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAav2H3O/HlS0F4VoLIhp3ROGJPIvev+KYiFtzMYEhKGAiAExv1h3xXvCCu04jwQN2UcUE+ToT704S6Kt7yxiBVsBw=="}],"size":1746,"noattachment":false,"key":"/fn-name/-/fn-name-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fn-name_4.0.0_1617822885629_0.9069854880454005"},"_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","publish_time":1617822885792,"_cnpm_publish_time":1617822885792,"dist-tags":{"latest":"4.0.0"}}