{"id":21658880,"url":"https://github.com/infinitered/ramdasauce","last_synced_at":"2025-07-17T21:31:54.785Z","repository":{"id":60775140,"uuid":"55215400","full_name":"infinitered/ramdasauce","owner":"infinitered","description":"Ramda smothered in saucy helpers.","archived":true,"fork":false,"pushed_at":"2023-01-13T19:03:48.000Z","size":125,"stargazers_count":69,"open_issues_count":2,"forks_count":4,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-14T08:56:28.172Z","etag":null,"topics":["ramda"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infinitered.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-01T08:15:43.000Z","updated_at":"2023-01-13T19:07:07.000Z","dependencies_parsed_at":"2023-02-09T16:45:24.185Z","dependency_job_id":null,"html_url":"https://github.com/infinitered/ramdasauce","commit_stats":null,"previous_names":["skellock/ramdasauce"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitered%2Framdasauce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitered%2Framdasauce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitered%2Framdasauce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinitered%2Framdasauce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinitered","download_url":"https://codeload.github.com/infinitered/ramdasauce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305047,"owners_count":17603731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ramda"],"created_at":"2024-11-25T09:29:59.169Z","updated_at":"2024-11-25T09:30:17.675Z","avatar_url":"https://github.com/infinitered.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"NOTE: this library is no longer maintained. \n\n# Ramdasauce\n\nAdds a few utilities based on the delicious [Ramda](http://ramdajs.com/) library.\n\n[![npm module](https://badge.fury.io/js/ramdasauce.svg)](https://www.npmjs.org/package/ramdasauce)\n\n\n# Installing\n\n`npm i ramdasauce --save`\n\n* Depends on `ramda 0.24.+`.\n* Targets ES5.\n* Built with ES6.\n\n# Usage\n\nHere's the quick list of functions and a simple example.\n\n```js\nimport RS from 'ramdasauce'\n\n// --- Conversions ---\nRS.toDate(1e12)             // a Number to a date Object\nRS.toNumber('5')            // a String to a Number\n\n// --- Object Shenanigans ---\nconst x = {a: 1, b: 2, c: {x: [5, 6]}}\nRS.mapKeys(R.toUpper, x)    // transforms the keys of an object by the function\nRS.dotPath('c.x.0', x)      // fetches a value from a nested object by a string path\n\n// --- Generating Things ---\nRS.rangeStep(2, 2, 10)      // generates a range of numbers with a step\n\n// --- Finding Things ---\nRS.findByProp('id', 'a', [{id: 'a', id: 'b'}])      // finds an object by propEq\nRS.findIndexByProp('id', 'a', [{id: 'a', id: 'b'}]) // finds the index of an object by propEq\n\n// --- Predicates ---\nRS.isUndefined(qwerty)      // check if something is undefined\nRS.isNotNil(null)           // check if something is not null or undefined\nRS.isNilOrEmpty(null)       // checks if something is null, undefined or R.isEmpty\nRS.isWithin(1, 2, 2)        // is the 3rd parameter within the range of 1st through 2nd?\nRS.isNotWithin(1, 2, 100)   // is the 3rd parameter not within the range of 1st through 2nd?\nRS.eqLength([1,2,3], 'abc') // tests 2 things to see if their length properties are the same\n```\n\n# Prior Art\n\nMost of these functions were lifted from stuff I wrote in real projects.\n\n(*leans in and whispers*)\n\nI did look at these tho:\n\n* https://github.com/Cottin/ramda-extras\n* https://github.com/mediasuitenz/ramda-extended\n* https://github.com/ramda/ramda/wiki/Cookbook\n* https://github.com/seancannon/prettycats\n\n\n# Philosophy\n\nThese helper functions target that sweet spot between:\n\n\u003e Not right for `ramda` core.\n\nand\n\n\u003e Would never be used outside your app.\n\nFunctions being added here *must* be used in an app.  Preferable more than once.\n\nI hope this library won't turn into something like this:\n\n```js\nRS.portmanteau('functor', 'wrecked')\nRS.yearsForAnimalInAsianCalendars('monkey')\n```\n\n\n# Feedback\n\nDo you have any common `ramda` patterns you use frequently?  Drop some issues or PRs in!\n\n\n# Release Notes\n\n### 2.1.0 - Aug 12, 2017\n* upgrades to ramda@24.0.1\n* bumped all dev dependencies\n* marked previous mentioned functions with @deprecated in their comments\n\n### 2.0.0 - May 29, 2017\n* DEPRECATIONS: `startsWith` and `endsWith` are flagged for removal in 3.0.0 (ramda has these now)\n* DEPRECATIONS: `random` and `sample` are flagged for removal in 3.0.0 (impure functions)\n* DEPRECATIONS: `log` and `trace` are flagged for removal in 3.0.0 (impure debug functions)\n* Upgrades to ramda@24.0.0\n* updates build process for much smaller bundle sizes\n\n### 1.2.0 - February 6, 2017\n* Updates `isWithin` to play nice with Webpack - @hubciorz (#7)\n* Bumped dependencies - @skellock (#8)\n\n### 1.1.1 - August 17th, 2016\n* Bumped dependencies - [@skellock](https://github.com/skellock) ([#5](https://github.com/skellock/ramdasauce/pull/5))\n\n### 1.1.0 - June 16th, 2016\n* Adds findByProp \u0026 findIndexByProp - [@kevinvangelder](https://github.com/kevinvangelder)\n* Fixes test environment - [@skellock](https://github.com/skellock) [@kevinvangelder](https://github.com/kevinvangelder)\n* Bumped dependencies\n\n### 1.0.0 - April 3rd, 2016\n* Initial Release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitered%2Framdasauce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitered%2Framdasauce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitered%2Framdasauce/lists"}