{"_id":"clone-function","_rev":"1954102","name":"clone-function","description":"Clones non native JavaScript functions, or references native functions.","dist-tags":{"latest":"1.0.6"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"time":{"modified":"2021-12-13T12:52:03.000Z","created":"2013-09-24T06:06:33.367Z","1.0.6":"2013-12-21T17:13:06.878Z","1.0.5":"2013-12-21T15:45:25.592Z","1.0.4":"2013-12-15T23:38:25.124Z","1.0.3":"2013-10-13T16:21:48.836Z","1.0.2":"2013-09-24T07:38:55.085Z","1.0.1":"2013-09-24T06:06:33.367Z"},"users":{"guzgarcia":true},"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"versions":{"1.0.6":{"name":"clone-function","version":"1.0.6","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.6","dist":{"shasum":"428471937750bca9c48ecbfbc16f6e232f74a03d","size":53210,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.6.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1387645986878,"_cnpm_publish_time":1387645986878,"_hasShrinkwrap":false},"1.0.5":{"name":"clone-function","version":"1.0.5","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.5","dist":{"shasum":"efd8db77d2cb7b8ce58db25ac625e4de6f09b790","size":53014,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.5.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1387640725592,"_cnpm_publish_time":1387640725592,"_hasShrinkwrap":false},"1.0.4":{"name":"clone-function","version":"1.0.4","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.4","dist":{"shasum":"71c877e4810500b01226f5001f95521c050f14db","size":52948,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.4.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1387150705124,"_cnpm_publish_time":1387150705124,"_hasShrinkwrap":false},"1.0.3":{"name":"clone-function","version":"1.0.3","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.3","dist":{"shasum":"1cf5ef052217163ed7c7593f8306f29198240293","size":52861,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1381681308836,"_cnpm_publish_time":1381681308836,"_hasShrinkwrap":false},"1.0.2":{"name":"clone-function","version":"1.0.2","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.2","dist":{"shasum":"903207dd2e19b687259a886a068720ccba2e607b","size":52873,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1380008335085,"_cnpm_publish_time":1380008335085,"_hasShrinkwrap":false},"1.0.1":{"name":"clone-function","version":"1.0.1","description":"Clones non native JavaScript functions, or references native functions.","main":"./src/clone-function.js","directories":{"lib":"src","doc":"docs"},"devDependencies":{"atropa-jsformatter":">=0.1.2","atropa-jslint":">=0.1.2","browserify":">=2.29.1","jasmine-node":">=1.11.0","jsdoc-toolkit":"git+https://github.com/matthewkastor/node-jsdoc-toolkit.git#fix-tests"},"scripts":{"test":"jasmine-node specs/","buildBrowserModule":"node dev/browserify.js","buildDocs":"jsdoc-toolkit -v -d=./docs/jsdoc/ -r -s src/","lint":"atropa-jslint ./src/clone-function.js","srcFormat":"atropa-jsformatter ./src/clone-function.js ./src/clone-function.js"},"homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"},"repository":{"type":"git","url":"git://github.com/matthewkastor/clone-function.git"},"keywords":["clone-function","atropa"],"author":{"name":"Matthew Kastor","email":"matthewkastor@gmail.com","url":"https://plus.google.com/100898583798552211130"},"licenses":[{"type":"gpl-3.0","url":"http://www.gnu.org/licenses/gpl-3.0-standalone.html"}],"readmeFilename":"Readme.md","_id":"clone-function@1.0.1","dist":{"shasum":"9e7c2105fb539f5aab77675e87408ff9780b0cee","size":52820,"noattachment":false,"key":"/clone-function/-/clone-function-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-function/download/clone-function-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kastor","email":"matthewkastor@gmail.com"},"maintainers":[{"name":"kastor","email":"matthewkastor@gmail.com"}],"publish_time":1380002793367,"_cnpm_publish_time":1380002793367,"_hasShrinkwrap":false}},"readme":"# clone-function\r\nversion 0.0.1\r\n\r\nClones non native JavaScript functions, or references native functions.\r\n\r\n## Installation\r\n\r\n```\r\nnpm install clone-function\r\n```\r\n\r\nhttps://npmjs.org/package/clone-function\r\nSource code available at: https://github.com/matthewkastor/clone-function/\r\n\r\n## Usage\r\n\r\n```\r\nvar cloneFunction = require('clone-function');\r\nvar func = function () {\r\n    return 'wee';\r\n};\r\nvar copied = func;\r\nvar cloned = cloneFunction(func);\r\nconsole.log(func === copied); // true\r\nconsole.log(func === cloned); // false\r\nconsole.log(func() === cloned()); // true\r\n```\r\n\r\nIn the browser, include `./browser/clone-function_web.js` in your page. `cloneFunction` will\r\n be available globally in your page.\r\n\r\nFor full documentation see the docs folder. For examples see the example folder.\r\n\r\n## Tests\r\n\r\nTests can be run from the root of this package with\r\n\r\n```\r\nnpm test\r\n```\r\n\r\n## Hacking\r\n\r\nThere are several other scripts listed in package.json for development and\r\n hacking on this module. They can be run with `npm run-script` followed by the\r\n scripts property corresponding to the script you want to run. For example,\r\n given a script called `buildDocs`, it could be run from the package root by:\r\n\r\n```\r\nnpm run-script buildDocs\r\n```\r\n\r\n## Author\r\n\r\nMatthew Kastor\r\natropa\r\n\r\nmatthewkastor@gmail.com\r\nhttps://plus.google.com/100898583798552211130\r\n\r\n## License\r\n\r\ngpl-3.0\r\nhttp://www.gnu.org/licenses/gpl-3.0-standalone.html","_attachments":{},"readmeFilename":"Readme.md","homepage":"https://github.com/matthewkastor/clone-function/","bugs":{"url":"https://github.com/matthewkastor/clone-function/issues"}}