{"id":23507352,"url":"https://github.com/simplyhexagonal/simple-strings","last_synced_at":"2025-05-12T15:50:57.185Z","repository":{"id":71910308,"uuid":"427548211","full_name":"simplyhexagonal/simple-strings","owner":"simplyhexagonal","description":"Convenient functions to normalize strings with international special characters (diacritics)","archived":false,"fork":false,"pushed_at":"2022-01-09T02:13:16.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-06T20:26:03.622Z","etag":null,"topics":["diacritics","diacritics-removal","javascript-library","string-manipulation","typescript-library","url-safe"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@simplyhexagonal/simple-strings","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplyhexagonal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-11-13T02:19:09.000Z","updated_at":"2022-01-09T02:13:19.000Z","dependencies_parsed_at":"2023-09-24T03:50:36.654Z","dependency_job_id":null,"html_url":"https://github.com/simplyhexagonal/simple-strings","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"8f68e214eb05f9f4d27774295dfe08d9f1259bf5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fsimple-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fsimple-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fsimple-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fsimple-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplyhexagonal","download_url":"https://codeload.github.com/simplyhexagonal/simple-strings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253768400,"owners_count":21961319,"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":["diacritics","diacritics-removal","javascript-library","string-manipulation","typescript-library","url-safe"],"created_at":"2024-12-25T10:18:13.751Z","updated_at":"2025-05-12T15:50:57.160Z","avatar_url":"https://github.com/simplyhexagonal.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/jeanlescure","https://opencollective.com/simplyhexagonal"],"categories":[],"sub_categories":[],"readme":"# Simple Strings\n![Tests](https://github.com/simplyhexagonal/simple-strings/workflows/tests/badge.svg)\n[![Try simple-strings on RunKit](https://badge.runkitcdn.com/@simplyhexagonal/simple-strings.svg)](https://npm.runkit.com/@simplyhexagonal/simple-strings)\n\nConvenient functions to normalize strings with international special characters (diacritics).\n\nGreat for creating url-safe strings, i.e. normalize header titles into [url slugs](https://www.semrush.com/blog/what-is-a-url-slug/).\n\n## Open source notice\n\nThis project is open to updates by its users, [I](https://github.com/jeanlescure) ensure that PRs are relevant to the community.\nIn other words, if you find a bug or want a new feature, please help us by becoming one of the\n[contributors](#contributors-) ✌️ ! See the [contributing section](#contributing)\n\n## Like this module? ❤\n\nPlease consider:\n\n- [Buying me a coffee](https://www.buymeacoffee.com/jeanlescure) ☕\n- Supporting Simply Hexagonal on [Open Collective](https://opencollective.com/simplyhexagonal) 🏆\n- Starring this repo on [Github](https://github.com/simplyhexagonal/simple-strings) 🌟\n\n## Install\n\n```sh\npnpm i @simplyhexagonal/simple-strings\n\n# or\nyarn add @simplyhexagonal/simple-strings\n\n# or\nnpm install @simplyhexagonal/simple-strings\n```\n\n## Usage\n\n```ts\nimport {\n  removeDiacritics,\n  makeUrlSafe,\n  simpleSearchTermIndex,\n} from '@simplyhexagonal/simple-strings';\n\nconsole.log(\n  removeDiacritics('¿¡Árvíztűrő tükörfúrógép!?')\n);\n\n// ¿¡Arvizturo tukorfurogep!?\n\nconsole.log(\n  makeUrlSafe('¿¡Árvíztűrő tükörfúrógép!?')\n);\n\n// arvizturo-tukorfurogep\n\nconsole.log(\n  simpleSearchTermIndex('bee ¿¡Árvíztűrő -minus +\"include, this\" ')\n);\n\n// arvizturo bee +\"include this\" -minus\n```\n\nBrowser\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@simplyhexagonal/simple-strings@latest/dist/simple-strings.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const {\n    removeDiacritics,\n    makeUrlSafe,\n    simpleSearchTermIndex,\n  } = SimpleStrings;\n\n  alert(\n    removeDiacritics('¿¡Árvíztűrő tükörfúrógép!?')\n  );\n\n  // ¿¡Arvizturo tukorfurogep!?\n\n  alert(\n    makeUrlSafe('¿¡Árvíztűrő tükörfúrógép!?')\n  );\n\n  // arvizturo-tukorfurogep\n\n  alert(\n    simpleSearchTermIndex('bee ¿¡Árvíztűrő -minus +\"include, this\" ')\n  );\n\n  // arvizturo bee +\"include this\" -minus\n\u003c/script\u003e\n```\n\n## Contributing\n\nYes, thank you! This plugin is community-driven, most of its features are from different authors.\nPlease update the docs and tests and add your name to the `simple-strings.json` file.\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://jeanlescure.cr\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/3330339?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJean Lescure\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-jeanlescure\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"https://github.com/simplyhexagonal/simple-strings/commits?author=jeanlescure\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#userTesting-jeanlescure\" title=\"User Testing\"\u003e📓\u003c/a\u003e \u003ca href=\"https://github.com/simplyhexagonal/simple-strings/commits?author=jeanlescure\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#example-jeanlescure\" title=\"Examples\"\u003e💡\u003c/a\u003e \u003ca href=\"https://github.com/simplyhexagonal/simple-strings/commits?author=jeanlescure\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n\u003c/table\u003e\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## License\n\nCopyright (c) 2021-Present [Simple Strings Contributors](https://github.com/simplyhexagonal/simple-strings/#contributors-).\u003cbr/\u003e\nLicensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyhexagonal%2Fsimple-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplyhexagonal%2Fsimple-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyhexagonal%2Fsimple-strings/lists"}