{"id":21135185,"url":"https://github.com/jacoborus/safename","last_synced_at":"2025-07-09T03:32:39.180Z","repository":{"id":17161926,"uuid":"19928975","full_name":"jacoborus/safename","owner":"jacoborus","description":"Normalize and transform diacritics, dashes, and spaces","archived":false,"fork":false,"pushed_at":"2021-04-18T21:59:24.000Z","size":147,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T09:08:17.129Z","etag":null,"topics":["dashes","diacritics","diacritics-removal","normalize-string","safename","string","string-manipulation"],"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/jacoborus.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":"2014-05-19T04:16:49.000Z","updated_at":"2023-03-08T04:34:29.000Z","dependencies_parsed_at":"2022-08-04T16:45:27.116Z","dependency_job_id":null,"html_url":"https://github.com/jacoborus/safename","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoborus%2Fsafename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoborus%2Fsafename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoborus%2Fsafename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacoborus%2Fsafename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacoborus","download_url":"https://codeload.github.com/jacoborus/safename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225482019,"owners_count":17481178,"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":["dashes","diacritics","diacritics-removal","normalize-string","safename","string","string-manipulation"],"created_at":"2024-11-20T06:44:51.722Z","updated_at":"2024-11-20T06:44:52.172Z","avatar_url":"https://github.com/jacoborus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"safename\n========\n\nNormalize diacritics and dashes, and transform spaces from strings\n\n[![Build Status](https://travis-ci.org/jacoborus/safename.svg?branch=master)](https://travis-ci.org/jacoborus/safename)\n\n\n## Example\n\n```js\nimport { safename } from 'safename'\n\nsafename('My file name 1234 Ñáëîò~')\n// =\u003e My_file_name_1234_Naeio\n\nsafename('My file name 1234 Ñáëîò~', '.')\n// =\u003e My.file.name.1234.Naeio\n```\n\n## Usage\n\n```\nsafename( name, space )\n```\n\n**Parameters:**\n\n- **name** *String*: string to transform\n- **space** *String*: replace for spaces. Optional, low dash (\u0026#x27;_\u0026#x27;) by default\n- **Return** *String*: safe name\n\n\n\n## Installation\n\nInstall with npm\n```\n$ npm install safename\n```\n\nInstall with Yarn\n```\n$ yarn add safename\n```\n\n\nTests\n-----\n\n```\nnpm install \u0026\u0026 npm test\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n---\n\n© 2014-2021 [Jacobo Tabernero Rey](https://github.com/jacoborus)\n\nReleased under [MIT License](https://raw.github.com/jacoborus/safename/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoborus%2Fsafename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacoborus%2Fsafename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacoborus%2Fsafename/lists"}