{"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"keywords":["clone","function","signature","browser","client","server"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"description":"Clones a function (creates wrapper function), with the same signature as source function","readme":"# fulcon [![NPM Module](https://img.shields.io/npm/v/fulcon.svg?style=flat)](https://www.npmjs.com/package/fulcon)\n\nClones a function (creates wrapper function), with the same signature as source function\n\n[![PhantomJS Build](https://img.shields.io/travis/alexindigo/fulcon/master.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/fulcon)\n[![Linux Build](https://img.shields.io/travis/alexindigo/fulcon/master.svg?label=linux:6.x-10.x&style=flat)](https://travis-ci.org/alexindigo/fulcon)\n[![MacOS Build](https://img.shields.io/travis/alexindigo/fulcon/master.svg?label=macos:6.x-10.x&style=flat)](https://travis-ci.org/alexindigo/fulcon)\n[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/fulcon/master.svg?label=windows:6.x-10.x&style=flat)](https://ci.appveyor.com/project/alexindigo/fulcon)\n\n[![Coverage Status](https://img.shields.io/coveralls/alexindigo/fulcon/master.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/fulcon?branch=master)\n[![Dependency Status](https://img.shields.io/david/alexindigo/fulcon.svg?style=flat)](https://david-dm.org/alexindigo/fulcon)\n[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://opensource.org/licenses/MIT)\n\n| compression      |    size |\n| :--------------- | ------: |\n| fulcon.js        | 1.03 kB |\n| fulcon.min.js    |   686 B |\n| fulcon.min.js.gz |   386 B |\n\n\n## Install\n\n```sh\n$ npm install --save fulcon\n```\n\n## Example\n\n```javascript\nvar fulcon = require('fulcon');\n\nfunction original(a, b, c)\n{\n  return 42 + a + b + c;\n}\n\nassert.strictEqual(original.length, 3, 'signature of the original function has 3 arguments');\nassert.strictEqual(original(1, 2, 3), 48, 'original function returns 48');\n\nvar cloned = fulcon(original);\n\nassert.notStrictEqual(original, cloned, 'original and cloned functions are not the same function');\n\nassert.strictEqual(cloned.length, 3, 'signature of the cloned function has 3 arguments');\nassert.strictEqual(cloned(1, 2, 3), 48, 'cloned function returns 48');\n```\n\n_Note: Beware of functions with side-effects! Cloned function calls original function under the hood, so it has same side-effects for better or for worst. Check [test.js](test.js) for details._\n\n## Want to Know More?\n\nMore examples can be found in [test.js](test.js).\n\nOr open an [issue](https://github.com/alexindigo/fulcon/issues) with questions and/or suggestions.\n\n## License\n\nFulcon is released under the [MIT](LICENSE) license.\n","repository":{"type":"git","url":"git+https://github.com/alexindigo/fulcon.git"},"bugs":{"url":"https://github.com/alexindigo/fulcon/issues"},"license":"MIT","versions":{"1.0.0":{"name":"fulcon","version":"1.0.0","description":"Clones a function (creates wrapper function), with the same signature as source function","main":"index.js","scripts":{"clean":"rimraf coverage","lint":"eslint *.js","cover":"istanbul cover --reporter=json tape -- test.js | tap-spec","test":"tape test.js | tap-spec","browser":"browserify -t browserify-istanbul test.js | obake --coverage | tap-spec","report":"istanbul report lcov","size":"browserify index.js | size-table fulcon","files":"pkgfiles --sort=name"},"pre-commit":["clean","lint","cover","browser","report","size"],"engines":{"node":">= 0.10"},"repository":{"type":"git","url":"git+https://github.com/alexindigo/fulcon.git"},"keywords":["clone","function","signature","browser","client","server"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/fulcon/issues"},"homepage":"https://github.com/alexindigo/fulcon#readme","devDependencies":{"browserify":"^13.1.0","browserify-istanbul":"^2.0.0","coveralls":"^2.11.12","eslint":"^2.13.1","istanbul":"^0.4.5","obake":"^0.1.2","phantomjs-prebuilt":"^2.1.12","pkgfiles":"^2.3.0","pre-commit":"^1.1.3","rimraf":"^2.5.4","size-table":"^0.2.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"gitHead":"5e7d09317a308b3ea13f855bac3f2fbd1e86aeea","_id":"fulcon@1.0.0","_shasum":"344539109761ab921e82ba287d7d0dd9e2cf9628","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"344539109761ab921e82ba287d7d0dd9e2cf9628","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/fulcon/-/fulcon-1.0.0.tgz","integrity":"sha512-r73simGUY4/h7W8eTtEso5GPpagFontTigs22VjqSPqb7m697ZjG7nDzRW5YEMncPPiUqYOQOnOZ0LzRPjOBcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE2qrN+eUmhecpYNNBZcqsLmyPqk98GPPITJu2/NqrsCAiAXjZ5/vuXqm9nRPycaiaw81mfrMJ5m6F9eZCV78Uc4ag=="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/fulcon-1.0.0.tgz_1471935020417_0.14258467056788504"},"directories":{}},"1.0.1":{"name":"fulcon","version":"1.0.1","description":"Clones a function (creates wrapper function), with the same signature as source function","main":"index.js","scripts":{"clean":"rimraf coverage","lint":"eslint *.js","cover":"istanbul cover --reporter=json tape -- test.js | tap-spec","test":"tape test.js | tap-spec","browser":"browserify -t browserify-istanbul test.js | obake --coverage | tap-spec","report":"istanbul report lcov","size":"browserify index.js | size-table fulcon","files":"pkgfiles --sort=name"},"pre-commit":["clean","lint","cover","browser","report","size"],"engines":{"node":">= 0.10"},"repository":{"type":"git","url":"git+https://github.com/alexindigo/fulcon.git"},"keywords":["clone","function","signature","browser","client","server"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/fulcon/issues"},"homepage":"https://github.com/alexindigo/fulcon#readme","devDependencies":{"browserify":"^13.1.0","browserify-istanbul":"^2.0.0","coveralls":"^2.11.12","eslint":"^2.13.1","istanbul":"^0.4.5","obake":"^0.1.2","phantomjs-prebuilt":"^2.1.12","pkgfiles":"^2.3.0","pre-commit":"^1.1.3","rimraf":"^2.5.4","size-table":"^0.2.0","tap-spec":"^4.1.1","tape":"^4.6.0"},"gitHead":"7956d61bea7ca31d179ffb08c17bafbd7ddb9511","_id":"fulcon@1.0.1","_shasum":"657760c4294c7279c9db7838278fcba90a3db0c4","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"657760c4294c7279c9db7838278fcba90a3db0c4","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/fulcon/-/fulcon-1.0.1.tgz","integrity":"sha512-FfmQlkdS4DNG32qVIMGeL3uIK99/Y5vVfBUVoc7IuxECNFaZt6XP3IxoWCaXCNr52LTT3FJiRVcHxsTK79kMQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHeyX4CnsgDJ9iMTY3RaX0k2ndq9fT/eSb8/PoBcWGimAiBbqnSTwLi3kPxp5WSc4A51ltLfDCerpe7O8SWIZi6tMA=="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fulcon-1.0.1.tgz_1471935307345_0.252169071463868"},"directories":{}},"1.0.2":{"name":"fulcon","version":"1.0.2","description":"Clones a function (creates wrapper function), with the same signature as source function","main":"index.js","scripts":{"clean":"rimraf coverage","lint":"eslint *.js","ci-lint":"is-node-modern && npm run lint || is-node-not-modern","cover":"istanbul cover --reporter=json tape -- test.js | tap-spec","test":"tape test.js | tap-spec","browser":"browserify -t browserify-istanbul test.js | obake --coverage | tap-spec","report":"istanbul report lcov","size":"browserify index.js | size-table fulcon","files":"pkgfiles --sort=name"},"pre-commit":["clean","lint","cover","browser","report","size"],"engines":{"node":">= 0.10"},"repository":{"type":"git","url":"git+https://github.com/alexindigo/fulcon.git"},"keywords":["clone","function","signature","browser","client","server"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/fulcon/issues"},"homepage":"https://github.com/alexindigo/fulcon#readme","devDependencies":{"browserify":"^13.1.0","browserify-istanbul":"^2.0.0","coveralls":"^2.11.14","eslint":"^3.8.0","is-node-modern":"^1.0.0","istanbul":"^0.4.5","obake":"^0.1.2","phantomjs-prebuilt":"^2.1.13","pkgfiles":"^2.3.0","pre-commit":"^1.1.3","rimraf":"^2.5.4","size-table":"^0.2.0","tap-spec":"^4.1.1","tape":"^4.6.2"},"gitHead":"01feef435c693685b28a5bf058f0655e0523a783","_id":"fulcon@1.0.2","_shasum":"8a4dfda4c73fcd9cc62a79d5045c392b45547320","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"shasum":"8a4dfda4c73fcd9cc62a79d5045c392b45547320","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/fulcon/-/fulcon-1.0.2.tgz","integrity":"sha512-vYwUBqbdo9XK0NmN7cFmURmy2T1YHpEsTCbxGO3aErxx6a0Z/HkWXcqcPkk7yOuJ74mSAHGWGBSBBd6v3GKebA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICG3AzyfwbTZNhyp47+iTOKatA5xM3hb33nwl81mZil3AiEArzWGEdBRD+nvkCmqOBUSe6s25UgaMBtM45FQW7kQPrQ="}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/fulcon-1.0.2.tgz_1476608439644_0.685999533161521"},"directories":{}},"2.0.0":{"name":"fulcon","version":"2.0.0","description":"Clones a function (creates wrapper function), with the same signature as source function","main":"index.js","scripts":{"clean":"rimraf coverage","lint":"eslint *.js","test":"nyc --reporter=json tape test.js | tap-spec","browser":"browserify -t browserify-istanbul test.js | obake --coverage | tap-spec","report":"istanbul report lcov text","size":"browserify index.js | size-table fulcon","testall":"npm run clean && npm run test && npm run browser && npm run report"},"files":["index.js","LICENSE","package.json","README.md"],"pre-commit":["clean","lint","test","browser","report","size"],"engines":{"node":">= 6"},"repository":{"type":"git","url":"git+https://github.com/alexindigo/fulcon.git"},"keywords":["clone","function","signature","browser","client","server"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/fulcon/issues"},"homepage":"https://github.com/alexindigo/fulcon#readme","devDependencies":{"browserify":"^16.2.2","browserify-istanbul":"^3.0.1","coveralls":"^3.0.2","eslint":"^5.3.0","is-node-modern":"^1.0.0","istanbul":"^0.4.5","nyc":"^12.0.2","obake":"^0.1.2","phantomjs-prebuilt":"^2.1.13","pre-commit":"^1.1.3","rimraf":"^2.5.4","size-table":"^0.2.0","tap-spec":"^5.0.0","tape":"^4.6.2"},"gitHead":"0c2a162053326554324a595bfdefe44eaf787c33","_id":"fulcon@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"anonymous","email":"iam@alexindigo.com"},"dist":{"integrity":"sha512-BuOhjdlrovbIzVajxL4WcXXK7iAWoTuSATKGMF9BEwAu2En+saHTB8IF/+LbXTWIx46hX4/Nqn2rv38VTh4mrA==","shasum":"087966662365f96318518ba129b952ffe4a6160d","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/fulcon/-/fulcon-2.0.0.tgz","fileCount":4,"unpackedSize":5698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcUDpCRA9TVsSAnZWagAAiHkQAIfHtMwKSh4dUwE4KjqE\ndC7nxuqzl1hUHkxsrSaQ4gedQ9+xi6SAQbnCfzjHIyalFiwE50vE9DWS42SD\nBKUBKbohWBAPkzeFY90COFqtySm5jqcwVzdiq0+c5c6hYMcIUzSP6MM0JLIz\nUV+HW+pmnIMGlDG/VaBuZxo/QtmtW8Whj4GJQImyqSFtDprrbMJ6YmBgQIy4\n/EpwPrcNuw+LupCWDNb0FUMRF/tpiQfz9A+YlsQMGiXkQOBh6WiiUlj43TS1\nI5QbR0YpxgQ0sNemSgmwZtkykimQpJmkne4Sb40A8AljpXrmX4nTdHzjHoxd\njntN+kDYAJS7P3MvgdywxlLA8bOaaHDKaTwCVlykTUizo3s6LQf77ERXzIVK\nw7UZY41eW8Czjm4rZ4p6fzzVFOF1YiKZBi+0tDRzDpYaZrJhwza6VRjek0iA\n1fzDZnEcxv09fDgFB9zOTqX3+PCRqr60JY8lHSUuWXWQvUzU26jKW16ghIx3\nQVY9EbRT1J9LTgoALz2MiZh8NjmIWxhezoxr5G/n/TLpbReI3jld4w1SZpjC\n/8DMEV8K/Dhep4cTbk3SRLolowKiLqAJmlpFuc9641ACiLWJ2WDRy/issb+D\nFWZ/57hcGPrcsLDjip987UHu/WxShywAfgn51BpCiZvgTrpZTs0aa1EHGTMZ\nB6wU\r\n=A/X3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIQy87eN/wHermnRcOATKBhS6SebWGLw9HuJvtwwHzDAIhANgFrjCzS6alPQRTuzdymyNl04x3tefUpt6fBI7uxXwf"}]},"maintainers":[{"name":"anonymous","email":"iam@alexindigo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fulcon_2.0.0_1534148840526_0.6593136386607577"},"_hasShrinkwrap":false}},"name":"fulcon","time":{"modified":"2022-06-18T04:07:02.902Z","created":"2016-08-23T06:50:23.726Z","1.0.0":"2016-08-23T06:50:23.726Z","1.0.1":"2016-08-23T06:55:07.885Z","1.0.2":"2016-10-16T09:00:42.267Z","2.0.0":"2018-08-13T08:27:20.624Z"},"readmeFilename":"README.md","homepage":"https://github.com/alexindigo/fulcon#readme"}