{"_id":"y-combinator-node","_rev":"6-7564c466e4f0090269d3c0100596474a","name":"y-combinator-node","description":"Y combinator for javascript","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"y-combinator-node","version":"1.0.0","description":"Y combinator for javascript","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/andy2046/y-combinator.git"},"keywords":["Y","combinator"],"author":{"name":"AndyP","url":"https://www.npmjs.com/~andy*("},"license":"MIT","bugs":{"url":"https://github.com/andy2046/y-combinator/issues"},"homepage":"https://github.com/andy2046/y-combinator#readme","gitHead":"b23976c2bca2db838a35a84d7b9cce4a7bdda56c","_id":"y-combinator-node@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"andy*()","email":"andypeng2015@gmail.com"},"dist":{"integrity":"sha512-1mRWDdLE/a9t46mUQ0LW1pG6MPITKe7KUp87lkMDCbbMgBIVctkeiE0qVOlgcrac2gs1W3MeY+ZVWX/CVe3vhg==","shasum":"46c552d39bdec38a3b32c02c5a98f09c5f1d06fa","tarball":"https://registry.npmjs.org/y-combinator-node/-/y-combinator-node-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcP5FHg0gWGs+IxLPa0KOtqWHlk3yQ1K8q9Ua/2ufygAIhAIPYGEpkeil0PNYzibPXAGJbpXWhUZoUZ2NAFzG7gWUV"}]},"maintainers":[{"name":"andy*()","email":"andypeng2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/y-combinator-node-1.0.0.tgz_1509593032800_0.23534802999347448"},"directories":{}},"1.1.0":{"name":"y-combinator-node","version":"1.1.0","description":"Y combinator for javascript","main":"src/index.js","directories":{"test":"test"},"scripts":{"test":"node ./test"},"repository":{"type":"git","url":"git+https://github.com/andy2046/y-combinator-node.git"},"keywords":["Y","combinator","javascript"],"author":{"name":"AndyP","url":"https://www.npmjs.com/~andy*("},"license":"MIT","bugs":{"url":"https://github.com/andy2046/y-combinator-node/issues"},"homepage":"https://github.com/andy2046/y-combinator-node#readme","gitHead":"0af5ada9342a6395693b2bc8aa4fd55fe0d580f8","_id":"y-combinator-node@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"andy*()","email":"andypeng2015@gmail.com"},"dist":{"integrity":"sha512-5yX6s6OdyGCip3gd6g7xxpoRxICvvK8TBd54x0ODW8XFJc6YWs57ktOR1sh8o1Vs5E52c83d5quskxTqq+p8pw==","shasum":"5d480fddbed2dd0626983cf75091d94894b418cf","tarball":"https://registry.npmjs.org/y-combinator-node/-/y-combinator-node-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh1sPpHVBeo5afmqnDMqsSo0cZj6i6XxDsS2C2s6P4BwIhAJb82NRk2NFvs8ICkjRmpzyvtpqePG7mgZoshgMC6NS7"}]},"maintainers":[{"name":"andy*()","email":"andypeng2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/y-combinator-node-1.1.0.tgz_1509777238732_0.8233717177063227"}},"1.2.0":{"name":"y-combinator-node","version":"1.2.0","description":"Y combinator for javascript","main":"dist/index.js","directories":{"test":"test"},"scripts":{"test":"node ./test","lint":"eslint src","lint-fix":"eslint --fix src --ext .js","clean-dist":"node ./bin/clean-dist.js","build":"npm run clean-dist && NODE_ENV=production npm run webpack-build","webpack-build":"webpack --progress -p"},"repository":{"type":"git","url":"git+https://github.com/andy2046/y-combinator-node.git"},"keywords":["Y","combinator","javascript"],"author":{"name":"AndyP","url":"https://www.npmjs.com/~andy*("},"license":"MIT","dependencies":{},"devDependencies":{"babel-cli":"6.24.1","babel-core":"6.26.0","babel-eslint":"7.2.3","babel-loader":"7.1.2","babel-runtime":"6.18.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-plugin-transform-runtime":"6.23.0","babel-preset-env":"1.6.1","del":"2.2.2","eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.2.0","eslint-plugin-node":"4.2.2","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","eslint-watch":"3.1.0","uglifyjs-webpack-plugin":"1.1.2","webpack":"3.5.5"},"bugs":{"url":"https://github.com/andy2046/y-combinator-node/issues"},"homepage":"https://github.com/andy2046/y-combinator-node#readme","gitHead":"0af5ada9342a6395693b2bc8aa4fd55fe0d580f8","_id":"y-combinator-node@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"andy*()","email":"andypeng2015@gmail.com"},"dist":{"integrity":"sha512-NDd/dLRLryFe6gj+VDm8JiecdVuFQtAeAzSwFqBeNn/lwaoF8BgeAvs4bWrU8RnGpYOZoThNHn9hjX3iXF4d7w==","shasum":"19aff96bd23dd0a7f416f92b84b9afc8e77d3c14","tarball":"https://registry.npmjs.org/y-combinator-node/-/y-combinator-node-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGsBDKZRZSiv6gVurfckTXakpEYU5fuqGdx1wiD6QjdwIgTDkrwuj4tniS5c/X8XYC9nqIMImABoFYN1nA9pgeJcA="}]},"maintainers":[{"name":"andy*()","email":"andypeng2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/y-combinator-node-1.2.0.tgz_1512916084313_0.6438580940011889"}},"1.2.1":{"name":"y-combinator-node","version":"1.2.1","description":"Y combinator for javascript","main":"dist/index.js","directories":{"test":"test"},"scripts":{"test":"node ./test","lint":"eslint src","lint-fix":"eslint --fix src --ext .js","clean-dist":"node ./bin/clean-dist.js","build":"npm run clean-dist && NODE_ENV=production npm run webpack-build","webpack-build":"webpack --progress -p"},"repository":{"type":"git","url":"git+https://github.com/andy2046/y-combinator-node.git"},"keywords":["Y","combinator","javascript"],"author":{"name":"AndyP","url":"https://www.npmjs.com/~andy*("},"license":"MIT","dependencies":{},"devDependencies":{"babel-cli":"6.24.1","babel-core":"6.26.0","babel-eslint":"7.2.3","babel-loader":"7.1.2","babel-runtime":"6.18.0","babel-plugin-transform-object-rest-spread":"6.26.0","babel-plugin-transform-runtime":"6.23.0","babel-preset-env":"1.6.1","del":"2.2.2","eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.2.0","eslint-plugin-node":"4.2.2","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","eslint-watch":"3.1.0","uglifyjs-webpack-plugin":"1.2.3","webpack":"3.5.5"},"bugs":{"url":"https://github.com/andy2046/y-combinator-node/issues"},"homepage":"https://github.com/andy2046/y-combinator-node#readme","gitHead":"36bf7f2f31e9eb17381d0b4feae9dde22664496f","_id":"y-combinator-node@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.6.0","_npmUser":{"name":"andy*()","email":"andypeng2015@gmail.com"},"dist":{"integrity":"sha512-eLSZh3MMtkfYq2GPTzdVF+wi6NpPiBwXSdArE2mpbrV2160jcqCXQlxrp7X1dpHuxT+GyojSgUsGzdHj3qRptg==","shasum":"0d0e0cbf531e9aaa78949210f3427a92d9be4465","tarball":"https://registry.npmjs.org/y-combinator-node/-/y-combinator-node-1.2.1.tgz","fileCount":15,"unpackedSize":376318,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpoLyGU/NcSdgMpMNfczvoac46LOt2Q/KfACB+tAoQSAiEA4G2N6b3SSYxaLkiknqB6Y2njzA3XSz1w6vYT5yhAKtM="}]},"maintainers":[{"name":"andy*()","email":"andypeng2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/y-combinator-node_1.2.1_1521004035699_0.6757752525356904"},"_hasShrinkwrap":false}},"readme":"# y-combinator-node\ny-combinator-node is an implementation of **Y combinator** in JavaScript for tail call optimization.\n\n## Examples\n```js\nimport { Y } from 'y-combinator-node';\n\nconst fibonacci = Y(fib => (n => (n <= 2 ? 1 : fib(n - 1) + fib(n - 2))))\n\nconsole.log( fibonacci(10) )\n// 55\n\nconst factorial = Y(f => (n => n === 0 ? 1 : n * f(n - 1)))\n\nconsole.log( factorial(10) )\n// 3628800\n\n```\n\n## Installation\n\n```\nnpm install --save y-combinator-node\n```\n\n## Usage\nYou can import from `y-combinator-node`:\n\n```js\nimport { Y } from 'y-combinator-node';\n// or\nconst { Y } = require('y-combinator-node');\n```\n","maintainers":[{"name":"andy*()","email":"andypeng2015@gmail.com"}],"time":{"modified":"2022-05-25T02:47:56.889Z","created":"2017-11-02T03:23:52.907Z","1.0.0":"2017-11-02T03:23:52.907Z","1.1.0":"2017-11-04T06:33:58.817Z","1.2.0":"2017-12-10T14:28:04.381Z","1.2.1":"2018-03-14T05:07:15.780Z"},"homepage":"https://github.com/andy2046/y-combinator-node#readme","keywords":["Y","combinator","javascript"],"repository":{"type":"git","url":"git+https://github.com/andy2046/y-combinator-node.git"},"author":{"name":"AndyP","url":"https://www.npmjs.com/~andy*("},"bugs":{"url":"https://github.com/andy2046/y-combinator-node/issues"},"license":"MIT","readmeFilename":"README.md","users":{"andy*()":true}}