{"id":15022883,"url":"https://github.com/dazzlingfugu/ember-slugify","last_synced_at":"2025-08-22T05:04:25.764Z","repository":{"id":38041733,"uuid":"167359870","full_name":"DazzlingFugu/ember-slugify","owner":"DazzlingFugu","description":"Library to slugify your strings within Ember.","archived":false,"fork":false,"pushed_at":"2025-08-08T22:43:16.000Z","size":3773,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-08-22T05:02:53.144Z","etag":null,"topics":["ember","ember-addon","hacktoberfest","slug","slugify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/DazzlingFugu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-24T11:54:33.000Z","updated_at":"2025-04-01T07:59:35.000Z","dependencies_parsed_at":"2023-02-18T03:31:19.795Z","dependency_job_id":"92a249d9-4c7b-4a82-8f94-c303e2f411a3","html_url":"https://github.com/DazzlingFugu/ember-slugify","commit_stats":{"total_commits":337,"total_committers":14,"mean_commits":"24.071428571428573","dds":0.3026706231454006,"last_synced_commit":"ccfb459a53ef9bcb8f37d20843614dc9bac9648a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/DazzlingFugu/ember-slugify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DazzlingFugu%2Fember-slugify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DazzlingFugu%2Fember-slugify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DazzlingFugu%2Fember-slugify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DazzlingFugu%2Fember-slugify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DazzlingFugu","download_url":"https://codeload.github.com/DazzlingFugu/ember-slugify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DazzlingFugu%2Fember-slugify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588743,"owners_count":24785751,"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-22T02:00:08.480Z","response_time":65,"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":["ember","ember-addon","hacktoberfest","slug","slugify"],"created_at":"2024-09-24T19:58:29.182Z","updated_at":"2025-08-22T05:04:25.743Z","avatar_url":"https://github.com/DazzlingFugu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-slugify\n\n[![CI](https://github.com/DazzlingFugu/ember-slugify/actions/workflows/ci.yml/badge.svg)](https://github.com/DazzlingFugu/ember-slugify/actions/workflows/ci.yml) [![Ember Observer Score](https://emberobserver.com/badges/ember-slugify.svg)](https://emberobserver.com/addons/ember-slugify) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nLibrary to slugify your strings within Ember.\n\nThis library uses:\n\n- [slugify](https://github.com/simov/slugify)\n- [simple-pinyin](https://github.com/xuqingkuang/simple-pinyin)\n- [emoji.json](https://github.com/amio/emoji.json)\n\n## Compatibility\n\n- Ember.js v4.8 or above\n- Embroider or ember-auto-import v2\n\n## Installation\n\n```\nember install ember-slugify\n```\n\n## Usage\n\n### In a `js` file\n\n```js\nimport slugify, { removeDiacritics } from 'ember-slugify'\n\nlet slug = slugify('Le Théâtre')\n// le-theatre\n\nslug = slugify('I ♥ New York')\n// i-love-new-york\n\nslug = slugify(\"Vive l'♥\", { locale: 'fr' })\n// vive-lamour\n\nslug = slugify('bonjour monsieur', { replacement: '#' })\n// bonjour#monsieur\n\nslug = slugify('你好你怎么样 monsieur', { pinyin: true })\n// ni-hao-ni-zen-me-yang-monsieur\n\nslug = slugify('🇫🇷❤️🥖➕🍷', { emoji: true })\n// flag-france-red-heart-baguette-bread-plus-wine-glass\n\nlet noDiacritics = removeDiacritics('Le Théâtre')\n// Le Theatre\n```\n\n### In a template\n\n```hbs\n{{slugify 'Le Théâtre'}}\n\n{{slugify '你好你怎么样 monsieur' (hash pinyin=true)}}\n\n{{slugify '🇫🇷❤️🥖➕🍷' (hash emoji=true)}}\n\n{{remove-diacritics 'Le Théâtre'}}\n```\n\nThe separator option is not available on `slugify` helper.\n\n### Options\n\n| name        | description                                                    | default value |\n| ----------- | -------------------------------------------------------------- | ------------- |\n| replacement | replace spaces with replacement character                      | `'-'`         |\n| lower       | convert to lower case                                          | `true`        |\n| locale      | language code of the locale to use                             | `undefined`   |\n| trim        | trim leading and trailing replacement chars                    | `true`        |\n| pinyin      | replace chinese by latin character following the pinyin method | `false`       |\n| emoji       | replace unicode emoji by it's description                      | `false`       |\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n## Contributors\n\n\u003c!-- readme: contributors,ember-tomster/- -start --\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/MrChocolatine\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/47531779?v=4\" width=\"100;\" alt=\"MrChocolatine\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eMrChocolatine\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/GreatWizard\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/1322081?v=4\" width=\"100;\" alt=\"GreatWizard\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eGreatWizard\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/saintsebastian\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/8288415?v=4\" width=\"100;\" alt=\"saintsebastian\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003esaintsebastian\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/BlueCutOfficial\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/22059380?v=4\" width=\"100;\" alt=\"BlueCutOfficial\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eBlueCutOfficial\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/mathieupoteriepeopledoc\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/40787872?v=4\" width=\"100;\" alt=\"mathieupoteriepeopledoc\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003emathieupoteriepeopledoc\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/romgere\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/13900970?v=4\" width=\"100;\" alt=\"romgere\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eromgere\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/ndekeister-us\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/56396753?v=4\" width=\"100;\" alt=\"ndekeister-us\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003endekeister-us\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/xcambar\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/657654?v=4\" width=\"100;\" alt=\"xcambar\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003excambar\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- readme: contributors,ember-tomster/- -end --\u003e\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazzlingfugu%2Fember-slugify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdazzlingfugu%2Fember-slugify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdazzlingfugu%2Fember-slugify/lists"}