{"id":13484936,"url":"https://github.com/sodiray/radash","last_synced_at":"2025-05-14T13:09:33.544Z","repository":{"id":44877143,"uuid":"324002870","full_name":"sodiray/radash","owner":"sodiray","description":"Functional utility library - modern, simple, typed, powerful","archived":false,"fork":false,"pushed_at":"2024-06-24T18:34:51.000Z","size":691,"stargazers_count":4610,"open_issues_count":103,"forks_count":186,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-04T21:04:59.480Z","etag":null,"topics":["functions","hacktoberfest","javascript","javascript-library","typescript"],"latest_commit_sha":null,"homepage":"https://radash-docs.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sodiray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-23T21:14:25.000Z","updated_at":"2025-05-04T16:58:19.000Z","dependencies_parsed_at":"2024-02-21T03:08:48.649Z","dependency_job_id":"27bfef26-0b9b-4d5f-aa01-cb27d01de499","html_url":"https://github.com/sodiray/radash","commit_stats":{"total_commits":197,"total_committers":46,"mean_commits":4.282608695652174,"dds":0.6649746192893401,"last_synced_commit":"069b26cdd7d62e6ac16a0ad3baa1c9abcca420bc"},"previous_names":["sodiray/radash"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Fradash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Fradash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Fradash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Fradash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sodiray","download_url":"https://codeload.github.com/sodiray/radash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149976,"owners_count":22022852,"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":["functions","hacktoberfest","javascript","javascript-library","typescript"],"created_at":"2024-07-31T17:01:39.342Z","updated_at":"2025-05-14T13:09:28.532Z","avatar_url":"https://github.com/sodiray.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Uncategorized","Utilities","typescript","📦 Legacy \u0026 Inactive Projects","相关依赖"],"sub_categories":["Uncategorized"],"readme":"# Radash\n\n:loud_sound: `/raw-dash/`\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/rayepps/radash/raw/master/banner.png\" alt=\"radash\" width=\"100%\" style=\"border-radius:4px\" /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n  \u003ch3 align=\"center\"\u003e\n    Functional utility library - modern, simple, typed, powerful\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://bundlephobia.com/package/radash\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/radash?label=minzipped\" alt=\"bundle size\" height=\"18\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/radash\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/radash.svg\" alt=\"npm downloads\" height=\"18\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/radash\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/radash.svg\" alt=\"npm version\" height=\"18\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/rayepps/radash\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/radash.svg\" alt=\"MIT license\" height=\"18\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://radash-docs.vercel.app\" target=\"_blank\"\u003e\n      Full Documentation\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Install\n\n```\nyarn add radash\n```\n\n## Usage\n\nA very brief kitchen sink. See the full documentation [here](https://radash-docs.vercel.app).\n\n```ts\nimport * as _ from 'radash'\n\nconst gods = [{\n  name: 'Ra',\n  power: 'sun',\n  rank: 100,\n  culture: 'egypt'\n}, {\n  name: 'Loki',\n  power: 'tricks',\n  rank: 72,\n  culture: 'norse'\n}, {\n  name: 'Zeus',\n  power: 'lightning',\n  rank: 96,\n  culture: 'greek'\n}]\n\n_.max(gods, g =\u003e g.rank) // =\u003e ra\n_.sum(gods, g =\u003e g.rank) // =\u003e 268\n_.fork(gods, g =\u003e g.culture === 'norse') // =\u003e [[loki], [ra, zeus]]\n_.sort(gods, g =\u003e g.rank) // =\u003e [ra, zeus, loki]\n_.boil(gods, (a, b) =\u003e a.rank \u003e b.rank ? a : b) // =\u003e ra\n\n_.objectify(\n  gods, \n  g =\u003e g.name.toLowerCase(), \n  g =\u003e _.pick(g, ['power', 'rank', 'culture'])\n) // =\u003e { ra, zeus, loki }\n\nconst godName = _.get(gods, g =\u003e g[0].name)\n\nconst [err, god] = await _.try(api.gods.findByName)(godName)\n\nconst allGods = await _.map(gods, async ({ name }) =\u003e {\n  return api.gods.findByName(name)\n})\n```\n\n## Contributing\n\nContributions are welcome and appreciated! Check out the [contributing guide](./.github/contributing.md) before you dive in.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiray%2Fradash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsodiray%2Fradash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiray%2Fradash/lists"}