{"_id":"function-name","_rev":"4819","name":"function-name","description":"Set the \"name\" property of `function` objects","dist-tags":{"latest":"2.0.0","native":"1.0.0"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"time":{"modified":"2021-06-03T09:56:34.000Z","created":"2012-10-03T01:09:51.322Z","2.0.0":"2017-03-25T18:33:18.829Z","1.0.0":"2015-12-02T00:04:15.021Z","0.0.3":"2014-05-12T01:47:12.062Z","0.0.2":"2014-02-09T02:19:45.863Z","0.0.1":"2012-10-03T01:09:51.322Z"},"users":{"chocolateboy":true},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"versions":{"2.0.0":{"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"name":"function-name","description":"Set the \"name\" property of `function` objects","keywords":["function","set","name"],"version":"2.0.0","license":"MIT","repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"main":"index.js","scripts":{"test":"node test/test"},"engines":{"node":">=3.0.0"},"gitHead":"7faf0d95c18be0066f417f569cb5827212502be2","bugs":{"url":"https://github.com/TooTallNate/node-function-name/issues"},"homepage":"https://github.com/TooTallNate/node-function-name#readme","_id":"function-name@2.0.0","_shasum":"5f5e52cb3eef22e4e753834537f5f83d3b8b0fce","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"dist":{"shasum":"5f5e52cb3eef22e4e753834537f5f83d3b8b0fce","size":2574,"noattachment":false,"key":"/function-name/-/function-name-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/function-name/download/function-name-2.0.0.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/function-name-2.0.0.tgz_1490466798562_0.7792537237983197"},"directories":{},"publish_time":1490466798829,"_hasShrinkwrap":false,"_cnpm_publish_time":1490466798829},"1.0.0":{"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"name":"function-name","description":"Set the \"name\" property of `function` objects","keywords":["function","set","name"],"version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"main":"index.js","dependencies":{"bindings":"^1.2.1","nan":"2"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"908060ed05d9d849522e137b56d2b01fadf78a6c","bugs":{"url":"https://github.com/TooTallNate/node-function-name/issues"},"homepage":"https://github.com/TooTallNate/node-function-name#readme","_id":"function-name@1.0.0","_shasum":"afee183fd7a1dc9222d5f65a7bf86da5835df745","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"afee183fd7a1dc9222d5f65a7bf86da5835df745","size":2213,"noattachment":false,"key":"/function-name/-/function-name-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/function-name/download/function-name-1.0.0.tgz"},"directories":{},"publish_time":1449014655021,"_cnpm_publish_time":1449014655021,"_hasShrinkwrap":false},"0.0.3":{"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"name":"function-name","description":"Set the \"name\" property of `function` objects","keywords":["function","set","name"],"version":"0.0.3","repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"main":"index.js","engines":{"node":"*"},"dependencies":{"bindings":"*","nan":"~1.0.0"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"bugs":{"url":"https://github.com/TooTallNate/node-function-name/issues"},"homepage":"https://github.com/TooTallNate/node-function-name","_id":"function-name@0.0.3","_shasum":"45c6ee7949008508d4d4e8c80e74367b161dfa21","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"45c6ee7949008508d4d4e8c80e74367b161dfa21","size":2152,"noattachment":false,"key":"/function-name/-/function-name-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/function-name/download/function-name-0.0.3.tgz"},"directories":{},"publish_time":1399859232062,"_cnpm_publish_time":1399859232062,"_hasShrinkwrap":false},"0.0.2":{"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"name":"function-name","description":"Set the \"name\" property of `function` objects","keywords":["function","set","name"],"version":"0.0.2","repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"main":"index.js","engines":{"node":"*"},"dependencies":{"bindings":"*","nan":"~0.8.0"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"bugs":{"url":"https://github.com/TooTallNate/node-function-name/issues"},"homepage":"https://github.com/TooTallNate/node-function-name","_id":"function-name@0.0.2","dist":{"shasum":"6a371ea9483a6a9d7e30e59cd83aa2882d88ee6c","size":2113,"noattachment":false,"key":"/function-name/-/function-name-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/function-name/download/function-name-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1391912385863,"_cnpm_publish_time":1391912385863,"_hasShrinkwrap":false},"0.0.1":{"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://tootallnate.net"},"name":"function-name","description":"Set the \"name\" property of `function` objects","keywords":["function","set","name"],"version":"0.0.1","repository":{"type":"git","url":"git://github.com/TooTallNate/node-function-name.git"},"main":"index.js","engines":{"node":"*"},"dependencies":{"bindings":"*"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"_id":"function-name@0.0.1","dist":{"shasum":"d18683470606e801cef8aa34308ce7339446fd92","size":1988,"noattachment":false,"key":"/function-name/-/function-name-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/function-name/download/function-name-0.0.1.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"directories":{},"publish_time":1349226591322,"_cnpm_publish_time":1349226591322,"_hasShrinkwrap":false}},"readme":"node-function-name\n==================\n### Set the \"name\" property of `Function` objects\n[![Build Status](https://travis-ci.org/TooTallNate/node-function-name.svg?branch=master)](http://travis-ci.org/TooTallNate/node-function-name)\n\nVery simple module. Sets the non-writable `name` property of `Function`\nobjects. In older versions of node, this functionality is exposed internally to\nV8, but not exposed to JavaScript, so a  native module is required. In newer\nversions of node, function names can be redefined with `Object.defineProperty`,\nwhich this module uses.\n\nNote that unfortunately _only_ String values are allowed.\n\n> **NOTE: For users of node prior to `iojs@3.0.0`**, you'll need to use an\nearlier version of this module, `function-name@1`, which provides a C++\nimplementation.\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install function-name\n```\n\n\nExample\n-------\n\n``` js\nvar set = require('function-name');\n\nfunction test () {\n  throw new Error('blah');\n}\n\nconsole.log(test.name);\n// \"test\"\n\n// change the \"name\" property to 'foo'\nset(test, 'foo');\n\nconsole.log(test.name);\n// \"foo\"\n\n// spaces, and even usually illegal UTF8 chars, are allowed\nset(test, '   ☃   ');\n\nconsole.log(test.name);\n// \"   ☃   \"\n\n// the newly set \"name\" also appears in stack traces!\ntest();\n// Error: blah\n//     at    ☃    (/Users/nrajlich/node-function-name/t.js:4:9)\n//     at Object.<anonymous> (/Users/nrajlich/node-function-name/t.js:23:1)\n//     at Module._compile (module.js:449:26)\n//     at Object.Module._extensions..js (module.js:467:10)\n//     at Module.load (module.js:356:32)\n//     at Function.Module._load (module.js:312:12)\n//     at Module.runMain (module.js:492:10)\n//     at process.startup.processNextTick.process._tickCallback (node.js:244:9)\n```\n\nThat's it!\n","_attachments":{},"homepage":"https://github.com/TooTallNate/node-function-name#readme","bugs":{"url":"https://github.com/TooTallNate/node-function-name/issues"},"license":"MIT"}