{"id":20031430,"url":"https://github.com/bbg/nuxt-radash","last_synced_at":"2025-05-05T04:31:29.420Z","repository":{"id":183923837,"uuid":"670963703","full_name":"bbg/nuxt-radash","owner":"bbg","description":"Radash module for Nuxt","archived":false,"fork":false,"pushed_at":"2024-06-14T13:18:35.000Z","size":134,"stargazers_count":20,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T17:05:17.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bbg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-26T08:27:20.000Z","updated_at":"2025-02-23T06:31:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"5376192c-3969-4a64-808e-31279bd13507","html_url":"https://github.com/bbg/nuxt-radash","commit_stats":null,"previous_names":["bbg/nuxt-radash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbg%2Fnuxt-radash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbg%2Fnuxt-radash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbg%2Fnuxt-radash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbg%2Fnuxt-radash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbg","download_url":"https://codeload.github.com/bbg/nuxt-radash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252439704,"owners_count":21748057,"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":[],"created_at":"2024-11-13T09:32:55.660Z","updated_at":"2025-05-05T04:31:29.410Z","avatar_url":"https://github.com/bbg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Radash for Nuxt\n\n[Radash](https://radash-docs.vercel.app) auto-import module for [Nuxt](https://nuxtjs.org).\n\n## 📦 Install\n\nInstall `nuxt-radash` as development dependency:\n\n```bash\nnpm i nuxt-radash -D\n```\n\nAdd it to the `modules` section of your `nuxt.config`:\n\n```ts\nexport default defineNuxtConfig({\n  modules: [\"nuxt-radash\"],\n});\n```\n\n## 🚀 Example\n\nUse any [Radash](https://radash-docs.vercel.app/) methods in your Nuxt application, they will be auto-imported!\n\n```html\n\u003cscript setup\u003e\nconst fish = [\n  {\n    name: \"Marlin\",\n    weight: 105,\n    source: \"ocean\",\n  },\n  {\n    name: \"Bass\",\n    weight: 8,\n    source: \"lake\",\n  },\n  {\n    name: \"Trout\",\n    weight: 1,\n    source: \"lake\",\n  },\n];\n\nconst ra = {\n  Mode: \"god\",\n  Power: \"sun\",\n};\n\nconst min = useMin(fish, (f) =\u003e f.weight);\nconst text = usePascal(\"it works!\");\nconst lowerize = useLowerize(ra);\nconst snake = stringToSnake('green fish blue fish')\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cdiv\u003e{{ text }}\u003c/div\u003e\n  \u003cpre\u003e{{ min }}\u003c/pre\u003e\n  \u003cpre\u003e{{ lowerize }}\u003c/pre\u003e\n  \u003cpre\u003e{{ snake }}\u003c/pre\u003e\n\u003c/template\u003e\n```\n\n## 🔨 Config\n\n| Name               | Default | Description                                                                           |\n| ------------------ | ------- | ------------------------------------------------------------------------------------- |\n| `prefix`           | `'use'` | String to prepend before each Radash function (false to disable)                      |\n| `prefixSkip`       | `'is'`  | Functions that starts with this keywords will be skipped by prefix (false to disable) |\n| `upperAfterPrefix` | `true`  | If true it will automatically uppercase first letter after prefix (false to disable)  |\n| `alias`            | `[]`    | Array of array pairs to rename specific Radash functions (prefix is still added)      |\n\n## 💻 Example - Config\n\n```ts\nexport default defineNuxtConfig({\n  modules: [\"nuxt-radash\"],\n   radash: {\n    prefix: '_',\n    prefixSkip: ['string'],\n    upperAfterPrefix: true,\n    alias: [\n      ['snake', 'stringToSnake'], // =\u003e stringToSnake\n    ]\n  }\n});\n```\n\n## Acknowledgement\nThe development of nuxt-radash was made possible thanks to the inspiration and code base from [nuxt-lodash](https://github.com/cipami/nuxt-lodash).\n\n## 📄 License\n\n[MIT License](https://github.com/bbg/nuxt-radash/blob/master/LICENSE) © 2023 - [Batuhan Göksu](https://github.com/bbg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbg%2Fnuxt-radash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbg%2Fnuxt-radash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbg%2Fnuxt-radash/lists"}