{"_id":"@cuonggosu97/ramda","_rev":"1-fbf9f64baa89c1ee25a23129436e3c33","name":"@cuonggosu97/ramda","dist-tags":{"latest":"0.22.1"},"versions":{"0.22.1":{"author":{"name":"Scott Sauyet","email":"scott@sauyet.com","url":"scott.sauyet.com"},"contributors":[{"name":"Michael Hurley","email":"mh@buzzdecafe.com","url":"http://buzzdecafe.com"},{"name":"Scott Sauyet","email":"scott@sauyet.com","url":"http://fr.umio.us"},{"name":"David Chambers","email":"dc@davidchambers.me","url":"http://davidchambers.me"},{"name":"Graeme Yeates","email":"yeatesgraeme@gmail.com","url":"https://github.com/megawac"}],"name":"@cuonggosu97/ramda","description":"A practical functional library for JavaScript programmers.","version":"0.22.1","homepage":"http://ramdajs.com/","license":"MIT","repository":{"type":"git","url":"git://github.com/ramda/ramda.git"},"main":"dist/ramda.js","scripts":{"bench":"scripts/benchRunner","bookmarklet":"scripts/bookmarklet","build":"make && make dist/ramda.min.js","clean":"rimraf dist/* coverage/*","precoverage":"npm run pretest","coverage":"istanbul cover node_modules/.bin/_mocha -- --reporter spec","postcoverage":"npm run posttest","lint":"eslint scripts/bookmarklet scripts/build src/*.js src/internal/*.js test/*.js test/**/*.js lib/sauce/*.js lib/bench/*.js","pretest":"npm install && npm run lint && npm run clean && npm run build","test":"mocha --reporter spec","posttest":"git checkout -- dist","prebrowser_test":"npm run pretest","browser_test":"testem ci","postbrowser_test":"npm run posttest"},"dependencies":{},"devDependencies":{"acorn":"0.9.x","benchmark":"~1.0.0","browserify":"10.x.x","cli-table":"0.3.x","commander":"2.5.x","dox":"latest","envvar":"1.x.x","escodegen":"1.4.x","eslint":"^2.11.0","handlebars":"3.0.x","istanbul":"^0.4.x","js-yaml":"^3.2.5","mocha":"2.x.x","q":"^1.1.1","ramda":"0.17.x","rimraf":"~2.3.2","sanctuary":"0.7.x","sinon":"^1.17.4","testem":"0.9.x","uglify-js":"2.4.x","xyz":"0.5.x"},"bugs":{"url":"https://github.com/ramda/ramda/issues"},"directories":{"lib":"lib","test":"test"},"keywords":["ramda"],"gitHead":"c592e687432fda78cbeab165b92a1b99e387a8e4","_id":"@cuonggosu97/ramda@0.22.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YABFexDkgvM8Z7a08URYw49R4nEmSfVOa9N/uerHWPtmfxVPY5dwDbhWF7VnDJ788PV/c3JJRgkRk/BV3M2XLA==","shasum":"59f97f4e7c88c3862c2d2741adb4e58eda69335b","tarball":"https://registry.npmjs.org/@cuonggosu97/ramda/-/ramda-0.22.1.tgz","fileCount":318,"unpackedSize":669038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWfDNCRA9TVsSAnZWagAAfwkP/3ZoBXcihDi46LDzynsi\nbFhP8EO1rdPNyaSZrGCupCMx3KKuhr+b51zwwL3PZuAGfHperwWYeoWl/TW9\nC3eYR1DBbMh3ABYyaFoqWrWnyFMyagWK1Ew4O32y7zxrl9nFNIaEOtS3qIwT\ntRD0vwpqYsVtaFq2pg2an070WRRn2FETAUq2Mt36Ywx3bWdA/pjcFQXJAwvM\n0Y4wwBAMOPgOz+/pRLjuyc7QK3ScvO4MIq4LzT6QZqtEXI8ZCli5J+tvS5E2\n9DP3vIyaiasBjusLakwqfxEo/iNDcZafKuMj86WO3YQWFeKdhKpasNup846m\nCADjI/rQsJO5AvkCSwz41NzCsA7XZuEuPKxphurwux8SrthQqsauRcR20Axg\nGykqPz744HfjnWdzHQLHUozPmm/9DxSOc30cpUZsqIMGU7JPCP6RrG8Z8YAz\nDLYj5lkUvePD0663+5ldbjleGE568qzc09/as0QBv0Z1wQb3IdbG2i24owC7\n52I75Z8SC9dZ8885oTaK0PvhEv8ItEiku9a+S/RQ5TcOlT7D12C14jM0ozBW\n9QOrSjKYUYRarmdV7TSjf5VP5t92MWZZcFSVpwgzHUU4t1Zy5ngWg2M/0aP5\npN7H/EylQu9Oej7Xcjt8Yb678sSqjmSX7unLqhQg7YcgQWzNSE60/z31ni6Y\n2nQg\r\n=oeGd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqq6gxsND+LQCS4cmLSalrznWqpXuGKkTE7R6mobbTeAiEAzLo33nyo2PhIOsSrTBvMSMEKhOZKvNyS4dT67c3mDrI="}]},"maintainers":[{"name":"cuonggosu97","email":"cuonggosu030297@gmail.com"}],"_npmUser":{"name":"cuonggosu97","email":"cuonggosu030297@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ramda_0.22.1_1599729868520_0.8986208396042541"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-10T09:24:28.475Z","0.22.1":"2020-09-10T09:24:28.830Z","modified":"2022-04-05T02:12:21.479Z"},"maintainers":[{"name":"cuonggosu97","email":"cuonggosu030297@gmail.com"}],"description":"A practical functional library for JavaScript programmers.","homepage":"http://ramdajs.com/","keywords":["ramda"],"repository":{"type":"git","url":"git://github.com/ramda/ramda.git"},"contributors":[{"name":"Michael Hurley","email":"mh@buzzdecafe.com","url":"http://buzzdecafe.com"},{"name":"Scott Sauyet","email":"scott@sauyet.com","url":"http://fr.umio.us"},{"name":"David Chambers","email":"dc@davidchambers.me","url":"http://davidchambers.me"},{"name":"Graeme Yeates","email":"yeatesgraeme@gmail.com","url":"https://github.com/megawac"}],"author":{"name":"Scott Sauyet","email":"scott@sauyet.com","url":"scott.sauyet.com"},"bugs":{"url":"https://github.com/ramda/ramda/issues"},"license":"MIT","readme":"Ramda\r\n=============\r\n\r\nA practical functional library for Javascript programmers.\r\n\r\n[![Build Status](https://travis-ci.org/ramda/ramda.svg?branch=master)](https://travis-ci.org/ramda/ramda)\r\n[![npm module](https://badge.fury.io/js/ramda.svg)](https://www.npmjs.org/package/ramda)\r\n[![dependencies](https://david-dm.org/ramda/ramda.svg)](https://david-dm.org/ramda/ramda)\r\n[![Gitter](https://badges.gitter.im/Join_Chat.svg)](https://gitter.im/ramda/ramda?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\r\n\r\n\r\nWhy Ramda?\r\n----------\r\n\r\n<img src=\"http://ramda.jcphillipps.com/logo/ramdaFilled_200x235.png\" \r\n     width=\"170\" height=\"190\" align=\"right\" hspace=\"12\" />\r\n\r\nThere are already several excellent libraries with a functional flavor. Typically, they are meant to be general-purpose toolkits, suitable for working in multiple paradigms. Ramda has a more focused goal. We wanted a library designed specifically for a functional programming style, one that makes it easy to create functional pipelines, one that never mutates user data. \r\n\r\n\r\nWhat's Different?\r\n-----------------\r\n\r\nThe primary distinguishing features of Ramda are:\r\n\r\n* Ramda emphasizes a purer functional style. Immutability and side-effect free functions \r\n  are at the heart of its design philosophy. This can help you get the job done with simple, \r\n  elegant code.\r\n\r\n* Ramda functions are automatically curried. This allows you to easily build up new functions \r\n  from old ones simply by not supplying the final parameters.\r\n\r\n* The parameters to Ramda functions are arranged to make it convenient for currying. The data \r\n  to be operated on is generally supplied last.\r\n\r\nThe last two points together make it very easy to build functions as sequences of simpler functions, each of which transforms the data and passes it along to the next. Ramda is designed to support this style of coding.\r\n\r\n\r\nIntroductions\r\n-------------\r\n\r\n* [Introducing Ramda](http://buzzdecafe.github.io/code/2014/05/16/introducing-ramda) by Buzz de Cafe\r\n* [Why Ramda?](http://fr.umio.us/why-ramda/) by Scott Sauyet\r\n* [Favoring Curry](http://fr.umio.us/favoring-curry/) by Scott Sauyet\r\n* [Why Curry Helps](https://hughfdjackson.com/javascript/why-curry-helps/) by Hugh Jackson\r\n* [Hey Underscore, You're Doing It Wrong!](https://www.youtube.com/watch?v=m3svKOdZijA&app=desktop) by Brian Lonsdorf\r\n* [Thinking in Ramda](http://randycoulman.com/blog/categories/thinking-in-ramda) by Randy Coulman\r\n\r\n\r\nPhilosophy\r\n----------\r\nUsing Ramda should feel much like just using Javascript.\r\nIt is practical, functional Javascript. We're not introducing\r\nlambda expressions in strings, we're not borrowing consed \r\nlists, we're not porting over all of the Clojure functions.\r\n\r\nOur basic data structures are plain Javascript objects, and our\r\nusual collections are Javascript arrays. We also keep other\r\nnative features of Javascript, such as functions as objects\r\nwith properties.\r\n\r\nFunctional programming is in good part about immutable objects and \r\nside-effect free functions. While Ramda does not *enforce* this, it\r\nenables such style to be as frictionless as possible.\r\n\r\nWe aim for an implementation both clean and elegant, but the API is king.\r\nWe sacrifice a great deal of implementation elegance for even a slightly\r\ncleaner API.\r\n\r\nLast but not least, Ramda strives for performance. A reliable and quick\r\nimplementation wins over any notions of functional purity.\r\n\r\nInstallation\r\n------------\r\n\r\nTo use with node:\r\n\r\n```bash\r\n$ npm install ramda\r\n```\r\n\r\nThen in the console:\r\n\r\n```javascript\r\nvar R = require('ramda');\r\n```\r\n\r\nTo use directly in the browser:\r\n\r\n```html\r\n<script src=\"path/to/yourCopyOf/ramda.js\"></script>\r\n```\r\n\r\nor the minified version:\r\n\r\n```html\r\n<script src=\"path/to/yourCopyOf/ramda.min.js\"></script>\r\n```\r\n\r\nor from a CDN, either cdnjs:\r\n\r\n```html\r\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/ramda/0.22.1/ramda.min.js\"></script>\r\n```\r\n\r\nor one of the below links from [jsDelivr](http://jsdelivr.com):\r\n\r\n```html\r\n<script src=\"//cdn.jsdelivr.net/ramda/0.22.1/ramda.min.js\"></script>\r\n<script src=\"//cdn.jsdelivr.net/ramda/0.22/ramda.min.js\"></script>\r\n<script src=\"//cdn.jsdelivr.net/ramda/latest/ramda.min.js\"></script>\r\n```\r\n\r\n(note that using `latest` is taking a significant risk that ramda API changes could break your code.)\r\n\r\nThese script tags add the variable `R` on the browser's global scope.\r\n\r\nOr you can inject ramda into virtually any unsuspecting website using [the bookmarklet](https://github.com/ramda/ramda/blob/master/BOOKMARKLET.md).\r\n\r\n### Build\r\n\r\n* on Unix-based platforms, `npm run build` updates __dist/ramda.js__ and __dist/ramda.min.js__\r\n* on Windows, write the output of `scripts/build --complete` to a temporary file, then rename the temporary file __dist/ramda.js__.\r\n\r\n#### Partial Builds\r\n\r\nIt is possible to build Ramda with a subset of the functionality to reduce its file size. Ramda's build system supports this with command line flags. For example if you're using `R.compose`, `R.reduce`, and `R.filter` you can create a partial build with:\r\n\r\n    ./scripts/build -- src/compose.js src/reduce.js src/filter.js > dist/ramda.custom.js\r\n\r\nThis requires having Node/io.js installed. \r\n\r\nDocumentation\r\n-------------\r\n\r\nPlease review the [API documentation](http://ramdajs.com/docs/).\r\n\r\nThe Name\r\n--------\r\n\r\nOk, so we like sheep.  That's all.  It's a short name, not already \r\ntaken.  It could as easily have been `eweda`, but then we would be \r\nforced to say _eweda lamb!_, and no one wants that.  For non-English \r\nspeakers, lambs are baby sheep, ewes are female sheep, and rams are male \r\nsheep.  So perhaps ramda is a grown-up lambda... but probably not.\r\n\r\n\r\n\r\n\r\nRunning The Test Suite\r\n----------------------\r\n\r\n**Console:**\r\n\r\nTo run the test suite from the console, you need to have `mocha` installed:\r\n\r\n    npm install -g mocha\r\n\r\nThen from the root of the project, you can just call\r\n\r\n    mocha\r\n\r\nAlternately, if you've installed the dependencies, via:\r\n\r\n    npm install\r\n\r\nthen you can run the tests (and get detailed output) by running:\r\n\r\n    npm test\r\n\r\n**Browser:**\r\n\r\nTo run the test suite in the browser, you can simply open `test/index.html`.\r\n\r\nAlternatively, you can use [testem](https://github.com/airportyh/testem) to\r\ntest across different browsers (or even headlessly), with livereloading of\r\ntests too. Install testem (`npm install -g testem`) and run `testem`. Open the\r\nlink provided in your browser and you will see the results in your terminal.\r\n\r\nIf you have _PhantomJS_ installed, you can run `testem -l phantomjs` to run the\r\ntests completely headlessly.\r\n\r\n\r\n\r\n\r\nAcknowledgements\r\n-----------------\r\n\r\nThanks to [J. C. Phillipps](http://www.jcphillipps.com) for the Ramda logo.\r\nRamda logo artwork &copy; 2014 J. C. Phillipps. Licensed Creative Commons \r\n[CC BY-NC-SA 3.0](http://creativecommons.org/licenses/by-nc-sa/3.0/).\r\n","readmeFilename":"README.md"}