{"id":16688862,"url":"https://github.com/danieldietrich/slugify","last_synced_at":"2025-03-21T18:33:37.356Z","repository":{"id":35098422,"uuid":"205504137","full_name":"danieldietrich/slugify","owner":"danieldietrich","description":"Turns strings into user-friendly and search engine-friendly URL slugs.","archived":false,"fork":false,"pushed_at":"2023-01-04T21:59:02.000Z","size":590,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T03:26:40.535Z","etag":null,"topics":["ascii","latin-1","roman","slug","slugify","typescript","unicode","uri","url"],"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/danieldietrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"danieldietrich","custom":"https://www.paypal.me/danieldietrich13"}},"created_at":"2019-08-31T06:12:06.000Z","updated_at":"2022-10-26T21:51:12.000Z","dependencies_parsed_at":"2023-01-15T14:00:29.392Z","dependency_job_id":null,"html_url":"https://github.com/danieldietrich/slugify","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fslugify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fslugify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fslugify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldietrich%2Fslugify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieldietrich","download_url":"https://codeload.github.com/danieldietrich/slugify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117257,"owners_count":20400741,"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":["ascii","latin-1","roman","slug","slugify","typescript","unicode","uri","url"],"created_at":"2024-10-12T15:45:29.247Z","updated_at":"2025-03-21T18:33:36.942Z","avatar_url":"https://github.com/danieldietrich.png","language":"TypeScript","funding_links":["https://github.com/sponsors/danieldietrich","https://www.paypal.me/danieldietrich13","https://paypal.me/danieldietrich13"],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/@danieldietrich/slugify?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@danieldietrich/slugify/)[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@danieldietrich/slugify?style=flat-square)](https://snyk.io/test/npm/@danieldietrich/slugify)[![minzipped size](https://img.shields.io/bundlephobia/minzip/@danieldietrich/slugify?style=flat-square)](https://bundlephobia.com/result?p=@danieldietrich/slugify@latest)\n\u0026nbsp;\n[![build](https://img.shields.io/travis/danieldietrich/slugify?logo=github\u0026style=flat-square)](https://travis-ci.org/danieldietrich/slugify/)[![coverage](https://img.shields.io/codecov/c/github/danieldietrich/slugify?style=flat-square)](https://codecov.io/gh/danieldietrich/slugify/)\n\u0026nbsp;\n![Platform](https://img.shields.io/badge/platform-Node%20v10%20+%20Browser%20%28ES6%2fES2015%29-decc47?logo=TypeScript\u0026style=flat-square)\n\u0026nbsp;\n[![Sponsor](https://img.shields.io/badge/GitHub-💖Sponsors-b5b7b9?logo=github\u0026style=flat-square)](https://github.com/sponsors/danieldietrich)[![donate](https://img.shields.io/badge/Donate-PayPal-blue.svg?style=flat-square)](https://paypal.me/danieldietrich13)[![license](https://img.shields.io/github/license/danieldietrich/slugify?style=flat-square)](https://opensource.org/licenses/MIT/)\n\u0026nbsp;\n[![Follow](https://img.shields.io/twitter/follow/danieldietrich?label=Follow\u0026style=social)](https://twitter.com/danieldietrich/)\n\n# slugify\n\nTurns strings into user-friendly and search engine-friendly [URL slugs](https://en.wikipedia.org/wiki/Clean_URL#Slug).\n\nSlugify uses a [dictionary](https://github.com/danieldietrich/slugify/wiki/Dictionary) to translate certain glyphs to the alphabet `a-z A-Z 0-9`. Beside whitespace, the characters `!#$%\u0026()*+,-./:;=?@[\\]_|~` are considered as space. All other characters are removed, especially single `'` and double `\"` quotes. Finally, the words are joined, by default with hyphen '-'.\n\nA highlight of this solution is the readability of slugs. Only words and a single separator type are used.\n\n## Installation\n\n```bash\nnpm i @danieldietrich/slugify\n```\n\n## Usage\n\nThe module supports ES6 _import_ and CommonJS _require_ style.\n\n```ts\nimport slugify from '@danieldietrich/slugify';\n\n// I-love-it\nslugify('I ♥ it!');\n\n// I_love_it\nslugify('I ♥ it!', '_');\n\n// cafebab3-gmail-com\nslugify('cafebab3@gmail.com');\n\n// dos-and-donts\nslugify(\"Do's and Don'ts\").toLowerCase();\n```\n\n---\n\nCopyright \u0026copy; 2020 by [Daniel Dietrich](cafebab3@gmail.com). Released under the [MIT](https://opensource.org/licenses/MIT/) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldietrich%2Fslugify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieldietrich%2Fslugify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldietrich%2Fslugify/lists"}