{"_id":"function.name-polyfill","_rev":"11-6eb56dacc63f4720741543266e043db8","name":"function.name-polyfill","description":"Polyfill for the basic functionality of `Function.name` accessor property in its pre-ES6 form","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"function.name-polyfill","version":"1.0.0","description":"Polyfill for ECMAScript 6's `Function.name`","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["es6","function.name","fn.name","polyfill","ie"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"a10f338f4b1638f2ad001d0adfb3d45d29819615","_id":"function.name-polyfill@1.0.0","_shasum":"1b2d3db5c8346befab03a6cd00d773dc7ecab8a0","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"1b2d3db5c8346befab03a6cd00d773dc7ecab8a0","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.0.tgz","integrity":"sha512-oo2dlQQStxn1iTc+1IUIaFoNoz8HoN1oodKUCjg7QMw0B3XcgxmKWzZDeZe3wPYnYnZX34Evimt1KfaF3Vhj0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAesLswAQw83M6DeUZYWkpTLPsY5C9nP3apenLmenibuAiBd6hoiEU559u+qxl9HUsQdRfQ4Af0QRWim9dfFNGeaAQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.0.tgz_1468820029260_0.10346785304136574"},"directories":{}},"1.0.1":{"name":"function.name-polyfill","version":"1.0.1","description":"Polyfill for ECMAScript 6's `Function.name`","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["es6","function.name","fn.name","polyfill","ie"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"3042d89955419e272fc7adec7c0a54bae436bc47","_id":"function.name-polyfill@1.0.1","_shasum":"4b4ab72a716bcf57907a61aaaec77b7eaff656f2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"4b4ab72a716bcf57907a61aaaec77b7eaff656f2","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.1.tgz","integrity":"sha512-xrn766hM/ysdaSKhk2s0tLmaY3/u9mlKzQN7R0bUECG1DrFVqiJcsYI7MzZI1rDM0I13d+Yc3p9gX3vcrwXTkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbXR5a7rTkmQekuFHg0g93RMI0uY1ez3nYdMbDSWIBUwIhANEYSwXrY+hfZI769L0DMpbcbLnxv8SBd0aVEOvd63JA"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.1.tgz_1477141484268_0.08195200888440013"},"directories":{}},"1.0.2":{"name":"function.name-polyfill","version":"1.0.2","description":"Polyfill for ECMAScript 6's `Function.name`","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["es6","function.name","fn.name","polyfill","ie"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"a2500ace5ff2885cc97b3eb45ec7c92fd9b44d4d","_id":"function.name-polyfill@1.0.2","_shasum":"a060e3885728e14f7e90880fd1dc89d5b37306a3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"a060e3885728e14f7e90880fd1dc89d5b37306a3","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.2.tgz","integrity":"sha512-gXAXIsu7/H1TPPumw521YXDfZJftCqhd+b6vXVML5oakBqiOWhT21zydC2cfBjcVBOsIHTT7vkr87djKzOnTIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICT9Rhv1W9ShcwhFvTLXWoeX76AMvQeiCWcrhoYSwHVUAiEA+2ub+rrxnYH0TZfcc4n2S/uoEN5ecH+dR+yyLfzwfzE="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.2.tgz_1477142009992_0.7813489201944321"},"directories":{}},"1.0.3":{"name":"function.name-polyfill","version":"1.0.3","description":"Polyfill for ECMAScript 6's `Function.name`","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["es6","function.name","fn.name","polyfill","ie"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"2fa582f3d14f292ed2c4ec6f75e5ee879fc2e4e4","_id":"function.name-polyfill@1.0.3","_shasum":"392d03499e83bb0b5657ad13d36399f2a286a852","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"392d03499e83bb0b5657ad13d36399f2a286a852","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.3.tgz","integrity":"sha512-xu39zvZ2gi4viJ/+BB8/T0HcdG5jncXcs1w+Rg6dQ85KBAgcaVtzoQ2922zE4TZskFfei3rS+rlek+CkRN1kWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDW0IaaGRmvO9qmbHmMdaeuPuNg6pOrBvpJ08q7935DPAiBgWfFx26Hz84AMsJ4F5Pts+vlkTfILekDW7N/m2e/qmA=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.3.tgz_1477257582358_0.43085944396443665"},"directories":{}},"1.0.4":{"name":"function.name-polyfill","version":"1.0.4","description":"Polyfill for the basic functionality of `Function.name` accessor property in its pre-ES6 form","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["pre-es6","function.name","fn.name","polyfill","ie","chrome"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"09cea6183ecc5da1140a5b4a9e4b0420d65919df","_id":"function.name-polyfill@1.0.4","_shasum":"17ae49f73ec42042a9b15f5da9207641e290d7e4","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"17ae49f73ec42042a9b15f5da9207641e290d7e4","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.4.tgz","integrity":"sha512-OlKwnQ5pr+g3wfotS6Yz2OodYVpTI1zdx6SSyfR0ToYbU8wqqcaj1mAZMfb0PcKRymQ9a56DBtwg5oCE3IEK/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAl0SZlG6/ozPxFd3bXS4XwigPtV+ojoMFW24aR7womwIgD5Qs4sptSHQSypoy+1SJyclCEEHLy2b6tds+dUGzcUM="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.4.tgz_1477276438646_0.19150768127292395"},"directories":{}},"1.0.5":{"name":"function.name-polyfill","version":"1.0.5","description":"Polyfill for the basic functionality of `Function.name` accessor property in its pre-ES6 form","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["pre-es6","function.name","fn.name","polyfill","ie","chrome"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"35ee5b30b54bd789bc7d85e91e1f93a3b885e8d5","_id":"function.name-polyfill@1.0.5","_shasum":"d349bb4e24a324f08120455ee78a04142b1257bb","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"d349bb4e24a324f08120455ee78a04142b1257bb","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.5.tgz","integrity":"sha512-2PzJ4zZyIMdNV2ttSmcTliY2bJu016zV/lvsH5QXE8uJJsCPLgf5cupybGSeJVkGAj4foTl5NxsJWoKPt96mqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNM2HKkhOlUlQJsPCox1ihcLz9M+F5bB9U5r3yqt4HRQIhAPmRlcD8EqVAD01DIg3hu8boTt9YZCBFb7Uf4Ftd2s9q"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function.name-polyfill-1.0.5.tgz_1477284903946_0.6561267382930964"},"directories":{}},"1.0.6":{"name":"function.name-polyfill","version":"1.0.6","description":"Polyfill for the basic functionality of `Function.name` accessor property in its pre-ES6 form","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"https://jamesmgreene.github.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["pre-es6","function.name","fn.name","polyfill","ie","chrome"],"main":"Function.name.js","scripts":{"test":"echo No tests right now"},"gitHead":"58b314d4a983110c3682f1228f845d39ccca1817","_id":"function.name-polyfill@1.0.6","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"integrity":"sha512-ejQivNFbBPTY5O/waFta6D5AzV8GJiM/fMDaT6LrsYax1cb4eipxuQqKNlugF2jlcXIjifsqvju3wsgV35TELg==","shasum":"c54e37cae0a77dfcb49d47982815b0826b5c60d9","tarball":"https://registry.npmjs.org/function.name-polyfill/-/function.name-polyfill-1.0.6.tgz","fileCount":4,"unpackedSize":6719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+4uYCRA9TVsSAnZWagAAlx0P/ji9SB1M1uWM9N66OUUJ\nAyvZOzKvrj3AN8ZHTcfjgONene12YPhXLGp9nvuS6nQQYbQmkSseuBulMtzP\nZzNcknQArm5zdDY1K3BGg4BBc/8wQ9eqQ1Aa37WeRucjBG+rzGZsaguTnAya\n32Ytm01TZxGQyJ60cKNfT69IQLSk5AfrmnRwMo7wBZFX5F4bzgwO4QIj4nkr\nBz/7MWUTci7Dz29Bqo3VscPLcBWp4CSZUzJCFGymvJpCtAOq3l1LmQSdIGMU\nI4/P8M59CYMfOjnqkYhBASnR8Q0JRipAciPTiFlT2sFtrrQfLN5h3ZKuuAMH\nsf2u/5EHguxqTzv24AGBvDPU5skUx0GfDm6XDkasrjgXnvs5x00fnAxs/gHW\n0BwHxOoS1R9g11oJlhtYAZrrNPbovvIbQzSr4E5EpOvVb9wjWPzYGq98RHr3\nRJl3ZrsgrQnxGWEemEX53AKsvcpIeKR6kx4EMFrwGK7TSI7d6QeU0a4UPI4T\nfnmNnQSfGjc1Lq2wOTwb6YTJRNZLA7XsNXUe/o+8wUFNEyQ1zQbvsCDmDApM\n7C+RZv2FrgaYt9MKeuZDyhGHf7KjZ1zAxuIz8bJuF0loPYmYC02P+Zi+jTtx\nRSBTITVfVjIu5dGNxsX6eO5faWsJUHFz4wc/EObBxMqd4Ey+AP/s7ilMgRDI\nRexk\r\n=2Djs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdaLpUlKzL6ADMGzbHSaYSnTw6AW/9G7VPJ6vwi8gTuQIhAJRwAnVdXQLqk1py9AD9/qv3CgMSWLHVzUcQDbT4sFy6"}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/function.name-polyfill_1.0.6_1526434711519_0.5469070331154322"},"_hasShrinkwrap":false}},"readme":"# `Function.name`\n\n## Overview\n\nA polyfill for the basic functionality of [`Function.name`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name) accessor property in its [pre-ES6 form](#pre-es6-form).\n\n\n## Usage\n\n### Named function declarations\n\n```js\nfunction hello() {\n  /* ... */\n}\nconsole.log(hello.name);  // \"hello\"\n```\n\n### Named function expressions\n\n```js\nvar fn = function foo() {\n  /* ... */\n};\nconsole.log(fn.name);  // \"foo\"\n```\n\n\n## Browser Compatibility\n\nMost modern browsers have already supported this basic functionality for quite some time but this polyfill will apply to _at least_ the following:\n - IE `>=9 <12`\n - Chrome `<33`\n\nFor IE `<9`, you can still use `fn._name()` instead.\n\n\n### Caveats\n\n#### Pre-ES6 Form\n\n - In short, this means that this polyfilled `name` accessor property can provide you with the name of a named function definition (either a named function declaration or a named function expression).\n - Unlike other browsers with a similar support level for the pre-ES6 form, this poyfilled `name` accessor property is also intentionally marked as **configurable**.\n\n#### Chrome `<5`\n\n - When polyfilling for Chrome `<5`, the accessor property will be **configurable** (expected) _AND_ **enumerable** (unexpected) due to having to implement it using [`Object.prototype.__defineGetter__`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) instead of [`Object.defineProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty).\n\n\n## Other Documentation\n\n - [ES6 / ES2015 specification for `Function.name`](http://www.ecma-international.org/ecma-262/6.0/#sec-setfunctionname)\n","maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"time":{"modified":"2022-06-18T04:16:01.394Z","created":"2016-07-18T05:33:51.740Z","1.0.0":"2016-07-18T05:33:51.740Z","1.0.1":"2016-10-22T13:04:46.116Z","1.0.2":"2016-10-22T13:13:32.157Z","1.0.3":"2016-10-23T21:19:44.512Z","1.0.4":"2016-10-24T02:34:00.766Z","1.0.5":"2016-10-24T04:55:05.965Z","1.0.6":"2018-05-16T01:38:31.615Z"},"homepage":"https://github.com/JamesMGreene/Function.name#readme","keywords":["pre-es6","function.name","fn.name","polyfill","ie","chrome"],"repository":{"type":"git","url":"git+https://github.com/JamesMGreene/Function.name.git"},"author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"https://jamesmgreene.github.io/"},"bugs":{"url":"https://github.com/JamesMGreene/Function.name/issues"},"license":"MIT","readmeFilename":"README.md","users":{"rioli":true}}