{"id":17974075,"url":"https://github.com/martpie/react-slugify","last_synced_at":"2025-08-18T07:31:29.497Z","repository":{"id":47021900,"uuid":"158216228","full_name":"martpie/react-slugify","owner":"martpie","description":"Slugify a React node","archived":false,"fork":false,"pushed_at":"2025-08-05T13:10:00.000Z","size":351,"stargazers_count":25,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T13:21:29.026Z","etag":null,"topics":["react","reactjs","slug","slugify"],"latest_commit_sha":null,"homepage":"","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/martpie.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":"2018-11-19T12:08:55.000Z","updated_at":"2025-08-05T13:08:15.000Z","dependencies_parsed_at":"2024-04-28T13:34:43.377Z","dependency_job_id":"3dd47f98-2eda-4ae6-bf31-dd3e0827bc1d","html_url":"https://github.com/martpie/react-slugify","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":0.04225352112676062,"last_synced_commit":"6aa8621585ee49cd00efff4bdaa814cad294bceb"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/martpie/react-slugify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martpie%2Freact-slugify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martpie%2Freact-slugify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martpie%2Freact-slugify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martpie%2Freact-slugify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martpie","download_url":"https://codeload.github.com/martpie/react-slugify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martpie%2Freact-slugify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270961527,"owners_count":24675914,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react","reactjs","slug","slugify"],"created_at":"2024-10-29T17:06:14.722Z","updated_at":"2025-08-18T07:31:29.230Z","avatar_url":"https://github.com/martpie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-slugify\n\n![Build status](https://github.com/martpie/react-slugify/workflows/tests/badge.svg)\n\nSlugify a React node.\n\n## Usage\n\n### `slugify(node[, options])`\n\n- `node` String, Number, Fragment, Array of nodes\n- `options` Object (optional)\n  - `delimiter` String (default is `'-'`)\n  - `prefix` String (default is `''`)\n\n## Examples\n\n```tsx\nimport slugify from 'react-slugify';\n\nslugify('something I want to test');\n// -\u003e \"something-i-want-to-test\"\n\nslugify(\u003cspan\u003eYes it works like that too\u003c/span\u003e);\n// -\u003e \"yes-it-works-like-that-too\"\n\nslugify(\n  \u003c\u003e\n    \u003cspan\u003eand\u003c/span\u003e\n    \u003cspan\u003ewith\u003c/span\u003e\n    \u003cspan\u003efragments or arrays\u003c/span\u003e\n  \u003c/\u003e\n);\n// -\u003e \"and-with-fragments-or-arrays\"\n\nslugify(\u003ch3\u003eCrème brulée receipe\u003c/h3\u003e, { delimiter: '_' });\n// -\u003e creme_brulee_receipe\n\nslugify(\u003ch3\u003eCrème brulée receipe\u003c/h3\u003e, { prefix: 'user-content' });\n// -\u003e user-content-creme-brulee-receipe\n\nslugify(\u003ch3\u003eCrème brulée receipe\u003c/h3\u003e, {\n  delimiter: '_',\n  prefix: 'user-content',\n});\n// -\u003e user-content_creme_brulee_receipe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartpie%2Freact-slugify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartpie%2Freact-slugify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartpie%2Freact-slugify/lists"}