{"_id":"@aureooms/js-functools","_rev":"3-a95eacf2168f91648fa1b77cc41b77f9","name":"@aureooms/js-functools","description":"functions code bricks for JavaScript","dist-tags":{"latest":"2.0.3"},"versions":{"2.0.3":{"bugs":{"url":"https://github.com/aureooms/js-functools/issues"},"dependencies":{},"homepage":"http://aureooms.github.io/js-functools/","version":"2.0.3","keywords":["bricks","compose","curry","ender","function","functools","functional","javascript","js","partial"],"scripts":{"build":"aureooms-node-package-build","test":"aureooms-node-package-test","doc":"groc"},"devDependencies":{"aureooms-node-package":"^6.0.1"},"license":"AGPL-3.0","main":"js/dist/functools.js","description":"functions code bricks for JavaScript","repository":{"url":"git+https://github.com/aureooms/js-functools.git","type":"git"},"author":{"name":"aureooms"},"name":"@aureooms/js-functools","spm":{"main":"js/dist/functools.js"},"gitHead":"c5c4117f3cde7121668ec56d6d3762fdecb9e743","_id":"@aureooms/js-functools@2.0.3","_shasum":"5139d6245278193da4cf21c44666797bf40a1d6e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.5.0","_npmUser":{"name":"aureooms","email":"aurelien.ooms@gmail.com"},"dist":{"shasum":"5139d6245278193da4cf21c44666797bf40a1d6e","tarball":"https://registry.npmjs.org/@aureooms/js-functools/-/js-functools-2.0.3.tgz","integrity":"sha512-lixyUCEFi6BUMthelj+L3d8r208TRqYuJzL5V9kS+k41+dWJ/Uey68cZt6KH601CXo6wM6anAwTf8rzaGxPDcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn0QqINU637kWHyPLsojE+Q2xWdz/bomqJr8k95V2C0QIhAI9VE7Ibf+jNJ2EmZlOeHv88pLT8PeO+VE8akIzRE6iY"}]},"maintainers":[{"name":"aureooms","email":"aurelien.ooms@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/js-functools-2.0.3.tgz_1487246564873_0.08456534403376281"},"directories":{},"deprecated":"This package has been renamed to @functional-abstraction/functools."}},"readme":"[js-functools](http://aureooms.github.io/js-functools)\n==\n\nFunction tools for JavaScript. Parent is [aureooms/js-library](https://github.com/aureooms/js-library).\n\n```js\nlet j = ( a , b , c , x ) => a * x**2 + b * x + c ;\nlet p = partial( j , [ 5 , 4 , -1 ] ) ;\np( -1 ) ; // 5 - 4 - 1 = 0\n```\n\n[![NPM license](http://img.shields.io/npm/l/@aureooms/js-functools.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-functools/master/LICENSE)\n[![NPM version](http://img.shields.io/npm/v/@aureooms/js-functools.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-functools)\n[![Bower version](http://img.shields.io/bower/v/@aureooms/js-functools.svg?style=flat)](http://bower.io/search/?q=@aureooms/js-functools)\n[![Build Status](http://img.shields.io/travis/aureooms/js-functools.svg?style=flat)](https://travis-ci.org/aureooms/js-functools)\n[![Coverage Status](http://img.shields.io/coveralls/aureooms/js-functools.svg?style=flat)](https://coveralls.io/r/aureooms/js-functools)\n[![Dependencies Status](http://img.shields.io/david/aureooms/js-functools.svg?style=flat)](https://david-dm.org/aureooms/js-functools#info=dependencies)\n[![devDependencies Status](http://img.shields.io/david/dev/aureooms/js-functools.svg?style=flat)](https://david-dm.org/aureooms/js-functools#info=devDependencies)\n[![Code Climate](http://img.shields.io/codeclimate/github/aureooms/js-functools.svg?style=flat)](https://codeclimate.com/github/aureooms/js-functools)\n[![NPM downloads per month](http://img.shields.io/npm/dm/@aureooms/js-functools.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-functools)\n[![GitHub issues](http://img.shields.io/github/issues/aureooms/js-functools.svg?style=flat)](https://github.com/aureooms/js-functools/issues)\n[![Inline docs](http://inch-ci.org/github/aureooms/js-functools.svg?branch=master&style=shields)](http://inch-ci.org/github/aureooms/js-functools)\n\nCan be managed through [jspm](https://github.com/jspm/jspm-cli),\n[duo](https://github.com/duojs/duo),\n[component](https://github.com/componentjs/component),\n[bower](https://github.com/bower/bower),\n[ender](https://github.com/ender-js/Ender),\n[jam](https://github.com/caolan/jam),\n[spm](https://github.com/spmjs/spm),\nand [npm](https://github.com/npm/npm).\n\n## Install\n\n### jspm\n```terminal\njspm install github:aureooms/js-functools\n# or\njspm install npm:@aureooms/js-functools\n```\n### duo\nNo install step needed for duo!\n\n### component\n```terminal\ncomponent install aureooms/js-functools\n```\n\n### bower\n```terminal\nbower install @aureooms/js-functools\n```\n\n### ender\n```terminal\nender add @aureooms/js-functools\n```\n\n### jam\n```terminal\njam install @aureooms/js-functools\n```\n\n### spm\n```terminal\nspm install @aureooms/js-functools --save\n```\n\n### npm\n```terminal\nnpm install @aureooms/js-functools --save\n```\n\n## Require\n### jspm\n```js\nlet functools = require( \"github:aureooms/js-functools\" ) ;\n// or\nimport functools from '@aureooms/js-functools' ;\n```\n### duo\n```js\nlet functools = require( \"aureooms/js-functools\" ) ;\n```\n\n### component, ender, spm, npm\n```js\nlet functools = require( \"@aureooms/js-functools\" ) ;\n```\n\n### bower\nThe script tag exposes the global variable `functools`.\n```html\n<script src=\"bower_components/@aureooms/js-functools/js/dist/functools.min.js\"></script>\n```\nAlternatively, you can use any tool mentioned [here](http://bower.io/docs/tools/).\n\n### jam\n```js\nrequire( [ \"@aureooms/js-functools\" ] , function ( functools ) { ... } ) ;\n```\n\n## Use\n\n```js\nlet f = x => x + 1 ;\nlet g = x => 2 * x ;\nlet odd = compose( [ f , g ] ) ;\nodd( 7 ) ; // 2 * 7 + 1 = 15\n\nlet j = ( a , b , c , x ) => a * x**2 + b * x + c ;\nlet p = partial( j , [ 5 , 4 , -1 ] ) ;\np( -1 ) ; // 5 - 4 - 1 = 0\n\nlet add = curry( ( x , y ) => x + y , 2 ) ;\nadd(2)(3) ; // 5\n```\n\n## Reference\n\n  - https://docs.python.org/3/library/functions.html\n  - https://docs.python.org/3/library/functools.html\n  - https://github.com/lodash/lodash\n","maintainers":[{"name":"aureooms","email":"aurelien.ooms@gmail.com"}],"time":{"modified":"2022-06-12T14:52:01.261Z","created":"2017-02-16T12:02:45.439Z","2.0.3":"2017-02-16T12:02:45.439Z"},"homepage":"http://aureooms.github.io/js-functools/","keywords":["bricks","compose","curry","ender","function","functools","functional","javascript","js","partial"],"repository":{"url":"git+https://github.com/aureooms/js-functools.git","type":"git"},"author":{"name":"aureooms"},"bugs":{"url":"https://github.com/aureooms/js-functools/issues"},"license":"AGPL-3.0","readmeFilename":"README.md"}