{"id":21964328,"url":"https://github.com/dunosaurs/slug","last_synced_at":"2025-07-23T04:04:16.514Z","repository":{"id":57678999,"uuid":"488069732","full_name":"dunosaurs/slug","owner":"dunosaurs","description":"Deno library for converting arbitrary strings into valid slugs","archived":false,"fork":false,"pushed_at":"2022-11-27T22:29:39.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T06:32:53.171Z","etag":null,"topics":["deno","slug","slugify","typescript","unicode"],"latest_commit_sha":null,"homepage":"https://deno.land/x/slug","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/dunosaurs.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}},"created_at":"2022-05-03T03:49:41.000Z","updated_at":"2024-02-24T13:51:50.000Z","dependencies_parsed_at":"2023-01-22T02:03:32.569Z","dependency_job_id":null,"html_url":"https://github.com/dunosaurs/slug","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dunosaurs/slug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunosaurs%2Fslug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunosaurs%2Fslug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunosaurs%2Fslug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunosaurs%2Fslug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunosaurs","download_url":"https://codeload.github.com/dunosaurs/slug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunosaurs%2Fslug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614309,"owners_count":23956342,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["deno","slug","slugify","typescript","unicode"],"created_at":"2024-11-29T12:06:00.427Z","updated_at":"2025-07-23T04:04:16.490Z","avatar_url":"https://github.com/dunosaurs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slug\n\n\u003e Deno library for converting arbitrary strings into valid slugs\n\n```typescript\nimport { slug } from \"https://deno.land/x/slug/mod.ts\";\n\nconsole.log(slug(\"some string\")); // some-string\nconsole.log(slug(\"some string\", \"_\")); // some_string\nconsole.log(slug(\"I ♥ UNICODE\")); // i-love-unicode\nconsole.log(slug(\"I ♥ UNICODE\", { lower: false })); // I-love-UNICODE\n```\n\n## Options\n\n```typescript\nslug(\"some ƒÚÑķÝ and ☢ string\", {\n  replacement: \"-\", // replace spaces with replacement character (defaults to `-`)\n  remove: /[^\\w\\s$*_+~.()'\"!\\-:@]+/g, // remove characters that match regex (defaults to `/[^\\w\\s$*_+~.()'\"!\\-:@]+/g`)\n  lower: true, // convert to lower case (defaults to `true`)\n  strict: false, // strip special characters except replacement (defaults to `false`)\n  locale: \"vi\", // language code of the locale to use (defaults to `vi`)\n  trim: true, // trim leading and trailing replacement chars (defaults to `true`)\n  extends: { \"☢\": \"nuclear\" }, // extend default unicode character set (defaults to `{}`)\n}); // some-funky-and-nuclear-string\n```\n\n## Propers\n\nHeavily inspired by: [Slug](https://www.npmjs.com/package/slug) and\n[Slugify](https://www.npmjs.com/package/slugify)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunosaurs%2Fslug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunosaurs%2Fslug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunosaurs%2Fslug/lists"}