{"name":"compose-function","version":"3.0.3","description":"Compose new functions f(g(x))","main":"index.js","scripts":{"clean":"git reset && echo '/node_modules/' > .gitignore && git add .gitignore && git stash save --include-untracked --keep-index '`npm run clean` trash can' && git clean --force -d && git reset --hard && echo '\nclean: Uncommitted and ignored files have been moved to gitâs stash. To restore them run `git stash pop --quiet; git checkout .gitignore`.'","coverage":"rm -rf coverage && npm run test:transpile && cd .es5 && istanbul cover test.js && mv coverage ..","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls","develop":"nodangel --ignore node_modules --ignore coverage --exec 'npm run --silent test:lite'","prepublish":"npm run --silent clean && npm run transpile","patch-release":"npm version patch && npm publish && git push --follow-tags","minor-release":"npm version minor && npm publish && git push --follow-tags","major-release":"npm version major && npm publish && git push --follow-tags","test":"eslint --ignore-path .gitignore .; npm run test:transpile && node .es5/test.js | tap-spec","test:lite":"babel-node --optional es7.functionBind test.js | tap-spec","test:transpile":"rm -rf .es5 && babel --optional es7.functionBind test.js test/*.js --out-dir .es5 && babel module/*.js --out-dir .es5","transpile":"babel module --out-dir .","view-coverage":"echo 'Generating coverage reports…'; npm run coverage >/dev/null && echo '…done.' && opn ./coverage/lcov-report/index.html >/dev/null"},"repository":{"type":"git","url":"git+ssh://git@github.com/stoeffel/compose-function.git"},"files":["/*.js","/module/","/README.md","/LICENSE.md"],"keywords":["function","compose","functional"],"author":{"name":"stoeffel"},"license":"MIT","bugs":{"url":"http://github.com/stoeffel/compose-function/issues"},"homepage":"http://github.com/stoeffel/compose-function","devDependencies":{"babel":"^5.8.21","babel-eslint":"^4.0.10","coveralls":"^2.11.4","curry-this":"^3.0.2","es6-symbol":"^2.0.1","eslint":"^1.2.0","istanbul":"^0.3.18","nodangel":"1.3.8","opn-cli":"1.0.0","tap-spec":"^4.0.2","tape-catch":"1.0.4"},"dependencies":{"arity-n":"^1.0.4"},"gitHead":"6707fbcb2d09b08ec32a61f195e238b6cd27769e","_id":"compose-function@3.0.3","_shasum":"9ed675f13cc54501d30950a486ff6a7ba3ab185f","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"schtoeffel","email":"schtoeffel@gmail.com"},"dist":{"shasum":"9ed675f13cc54501d30950a486ff6a7ba3ab185f","tarball":"http://registry-npm.ywwl.com/compose-function/download/compose-function-3.0.3.tgz","integrity":"sha512-xzhzTJ5eC+gmIzvZq+C3kCJHsp9os6tJkrigDRZclyGtOKINbZtE8n1Tzmeh32jW+BUDPbvZpibwvJHBLGMVwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/ni5YAMRTvmjDV7GSKkeRY6y7EWWS7cYtKy0kthsFvAiBahPbTopwIGyzIsYk1m0qICRKOziwTuTT1BW+i/HDPWg=="}],"size":3365,"noattachment":false,"key":"/compose-function/-/compose-function-3.0.3.tgz"},"maintainers":[{"name":"schtoeffel","email":"schtoeffel@gmail.com"}],"directories":{},"readme":"[![Travis](https://img.shields.io/travis/stoeffel/compose-function.svg?style=flat-square)](https://travis-ci.org/stoeffel/compose-function)\n[![npm](https://img.shields.io/npm/v/compose-function.svg?style=flat-square)](https://www.npmjs.com/package/compose-function)\n[![Dependency Status](https://david-dm.org/stoeffel/compose-function.svg?style=flat-square)](https://david-dm.org/stoeffel/compose-function)\n[![Coveralls](https://img.shields.io/coveralls/stoeffel/compose-function.svg?style=flat-square)](https://coveralls.io/github/stoeffel/compose-function)\n\n\n<h1 align=\"center\">Compose-Function</h1>\n\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> |\n  <a href=\"#usage\">Usage</a> |\n  <a href=\"#related\">Related</a> |\n  <a href=\"#license\">License</a>\n  <br><br>\n  <img align=\"center\" height=\"300\" src=\"http://33.media.tumblr.com/006dfad04f93ec5b3680ec7cdae3fafa/tumblr_n8kgl18uU41qcung4o1_1280.gif\">\n  <br>\n  <sub>logo by <a href=\"http://justinmezzell.tumblr.com/\">Justin Mezzell</a></sub>\n  <blockquote align=\"center\">Compose a new function from smaller functions `f(g(x))`</blockquote>\n</p>\n\nInstallation\n------------\n\n`npm install compose-function`\n\nUsage\n-----\n\n## Basic usage\n\n```js\nimport compose from 'compose-function';\n\nconst composition = compose(sqr, add2); // sqr(add2(x))\n\ncomposition(2) // => 16\n\ncompose(sqr, inc)(2); // => 9\ncompose(inc, sqr)(2); // => 5\n```\n\n\n## with curry\n\n```js\nimport compose from 'compose-function';\nimport { curry, _ } from 'curry-this';\n\n\nconst add = (x, y) => x + y;\n\n// add(6, sqr(add(2, x)))\ncompose(\n  add::curry(6),\n  sqr,\n  add::curry(2),\n);\n\n// map(filter(list, even), sqr)\ncompose(\n  map::curry(_, sqr),\n  filter::curry(_, even),\n)([1,2,3,4,5,6,7,8]) // => [4, 16, 36, 64]\n```\n\n### `::` huh?\n\nIf you’re wondering what the `::` thing means, you’d better read this excellent [overview](https://github.com/jussi-kalliokoski/trine/blob/5b735cbfb6b28ae94bac0446d9ecd5ce51fb149b/README.md#why) by [@jussi-kalliokoski](https://github.com/jussi-kalliokoski) or have a look at the [function bind syntax proposal](https://github.com/zenparsing/es-function-bind).\nOr checkout the [curry-this docs][ct].\n\n\nRelated\n----\n\n* [curry-this][ct]\n\nLicense\n----\n\nMIT © [Christoph Hermann](http://stoeffel.github.io)\n\n[r]: http://ramdajs.com\n[ct]: https://github.com/stoeffel/curry-this\n","publish_time":1443986056530,"_cnpm_publish_time":1443986056530,"dist-tags":{"latest":"3.0.3"}}