{"id":13465117,"url":"https://github.com/motss/normalize-diacritics","last_synced_at":"2025-04-09T23:15:54.902Z","repository":{"id":19036969,"uuid":"85928815","full_name":"motss/normalize-diacritics","owner":"motss","description":"Normalize diacritics in strings","archived":false,"fork":false,"pushed_at":"2024-04-14T11:17:16.000Z","size":1155,"stargazers_count":60,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T23:15:47.885Z","etag":null,"topics":["diacritical-signs","diacritics","normalization","normalize","npm"],"latest_commit_sha":null,"homepage":"https://npm.im/normalize-diacritics","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/motss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"code-of-conduct.md","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},"funding":{"github":["motss"],"custom":["https://www.buymeacoffee.com/RLmMhgXFb"]}},"created_at":"2017-03-23T09:06:50.000Z","updated_at":"2025-03-23T19:04:36.000Z","dependencies_parsed_at":"2024-01-06T07:52:42.721Z","dependency_job_id":"7f1d1e36-d39b-4b74-873c-4a2d8a2b1225","html_url":"https://github.com/motss/normalize-diacritics","commit_stats":{"total_commits":209,"total_committers":7,"mean_commits":"29.857142857142858","dds":0.0861244019138756,"last_synced_commit":"04e4cb15c8ec94866426d2e4fb29675e01472f11"},"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motss%2Fnormalize-diacritics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motss%2Fnormalize-diacritics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motss%2Fnormalize-diacritics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motss%2Fnormalize-diacritics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motss","download_url":"https://codeload.github.com/motss/normalize-diacritics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125592,"owners_count":21051770,"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":["diacritical-signs","diacritics","normalization","normalize","npm"],"created_at":"2024-07-31T14:01:00.024Z","updated_at":"2025-04-09T23:15:54.857Z","avatar_url":"https://github.com/motss.png","language":"TypeScript","funding_links":["https://github.com/sponsors/motss","https://www.buymeacoffee.com/RLmMhgXFb"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"text-align: center;\"\u003e\n  \u003ch1 style=\"border-bottom: none;\"\u003enormalize-diacritics\u003c/h1\u003e\n\n  \u003cp\u003eRemove accents/ diacritics in string\u003c/p\u003e\n\u003c/div\u003e\n\n\u003chr /\u003e\n\n[![Follow me][follow-me-badge]][follow-me-url]\n\n[![Version][version-badge]][version-url]\n[![Node version][node-version-badge]][node-version-url]\n[![MIT License][mit-license-badge]][mit-license-url]\n\n[![Downloads][downloads-badge]][downloads-url]\n[![Total downloads][total-downloads-badge]][downloads-url]\n[![Packagephobia][packagephobia-badge]][packagephobia-url]\n[![Bundlephobia][bundlephobia-badge]][bundlephobia-url]\n\n[![ci][ga-badge]][ga-url]\n[![codecov][codecov-badge]][codecov-url]\n\n[![Code of Conduct][coc-badge]][coc-url]\n\n\u003e Simple [NPM][npm-url] package to remove any accents/ diacritics found in a string.\n\n## Table of contents \u003c!-- omit in toc --\u003e\n\n- [Pre-requisite](#pre-requisite)\n- [Install](#install)\n- [Usage](#usage)\n  - [TypeScript or ES Modules](#typescript-or-es-modules)\n  - [Browser](#browser)\n- [Demo](#demo)\n- [deno](#deno)\n- [API Reference](#api-reference)\n  - [normalize([input])](#normalizeinput)\n  - [normalizeSync([input])](#normalizesyncinput)\n- [Contributing](#contributing)\n  - [Code of Conduct](#code-of-conduct)\n- [License](#license)\n\n## Pre-requisite\n\n- [Node.js][node-js-url] \u003e= 14.17.3\n- [NPM][npm-url] \u003e= 6.14.13 ([NPM][npm-url] comes with [Node.js][node-js-url] so there is no need to install separately.)\n- [ES Modules]\n\n\n## Install\n\n```sh\n# Install via NPM\n$ npm i normalize-diacritics\n```\n\n## Usage\n\n### TypeScript or ES Modules\n\n```ts\nimport { normalize } from 'normalize-diacritics';\n\n/** Assuming top-level await is enabled... */\nawait normalize('söme stüff with áccènts'); // 'some stuff with accents'\n```\n\n### Browser\n\n```html\n\u003cscript type=\"module\"\u003e\n  import { normalize } from 'https://cdn.skypack.dev/normalize-diacritics@latest';\n\n  // --snip\n\u003c/script\u003e\n```\n\n## Demo\n[![Edit normalize-diacritics demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/normalizediacritics-demo-wl7ef?fontsize=14)\n\n\n## deno\n\n👉  Check out the [deno][] module at [deno_mod/normalize_diacritics][].\n\n## API Reference\n\n### `normalize([input])`\n\n- `input` \u003c[string][string-mdn-url]\u003e Input string that contains accents/diacritics.\n- returns: \u003c[Promise][promise-mdn-url]\u003c[string][string-mdn-url]\u003e\u003e Promise which resolves with normalized input string.\n\nThis method normalizes any accents/ diacritics found in a given input string and output a normalized string as a result.\n\n### `normalizeSync([input])`\n\nThis methods works the same as `normalize([input])` except that this is the synchronous version.\n\n## Contributing\n\n### Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct][coc-url]. By participating in this project you agree to abide by its terms.\n\n## License\n\n[MIT License](http://motss.mit-license.org/) © Rong Sen Ng\n\n\u003c!-- References --\u003e\n[node-js-url]: https://nodejs.org\n[npm-url]: https://www.npmjs.com\n[node-releases-url]: https://nodejs.org/en/download/releases\n[typescript-url]: https://github.com/Microsoft/TypeScript\n[unpkg-url]: https://unpkg.com/normalize-diacritics@latest/dist/\n[deno]: https://github.com/denoland/deno\n[deno_mod/normalize_diacritics]: https://github.com/motss/deno_mod/tree/master/normalize_diacritics\n[ES Modules]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules\n\n\u003c!-- MDN --\u003e\n[map-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n[string-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n[object-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n[number-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n[boolean-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n[html-style-element-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement\n[promise-mdn-url]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n\n\u003c!-- Badges --\u003e\n[follow-me-badge]: https://flat.badgen.net/twitter/follow/igarshmyb?icon=twitter\n\n[version-badge]: https://flat.badgen.net/npm/v/normalize-diacritics?icon=npm\n[node-version-badge]: https://flat.badgen.net/npm/node/normalize-diacritics\n[mit-license-badge]: https://flat.badgen.net/npm/license/normalize-diacritics\n\n[downloads-badge]: https://flat.badgen.net/npm/dm/normalize-diacritics\n[total-downloads-badge]: https://flat.badgen.net/npm/dt/normalize-diacritics?label=total%20downloads\n[packagephobia-badge]: https://flat.badgen.net/packagephobia/install/normalize-diacritics\n[bundlephobia-badge]: https://flat.badgen.net/bundlephobia/minzip/normalize-diacritics\n\n[ga-badge]: https://github.com/motss/normalize-diacritics/actions/workflows/ci.yml/badge.svg\n[codecov-badge]: https://flat.badgen.net/codecov/c/github/motss/normalize-diacritics?label=codecov\u0026icon=codecov\n\n[coc-badge]: https://flat.badgen.net/badge/code%20of/conduct/pink\n\n\u003c!-- Links --\u003e\n[follow-me-url]: https://twitter.com/igarshmyb?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=motss/normalize-diacritics\n\n[version-url]: https://www.npmjs.com/package/normalize-diacritics\n[node-version-url]: https://nodejs.org/en/download\n[mit-license-url]: /LICENSE\n\n[downloads-url]: http://www.npmtrends.com/normalize-diacritics\n[packagephobia-url]: https://packagephobia.now.sh/result?p=normalize-diacritics\n[bundlephobia-url]: https://bundlephobia.com/result?p=normalize-diacritics\n\n[ga-url]: https://github.com/motss/normalize-diacritics/actions/workflows/ci.yml\n[codecov-url]: https://codecov.io/gh/motss/normalize-diacritics\n\n[coc-url]: /code-of-conduct.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotss%2Fnormalize-diacritics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotss%2Fnormalize-diacritics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotss%2Fnormalize-diacritics/lists"}