5.0.0 • Published 1 year ago

normalize-diacritics v5.0.0

Weekly downloads
7,474
License
MIT
Repository
github
Last release
1 year ago

Follow me

Version Node version MIT License

Downloads Total downloads Packagephobia Bundlephobia

ci codecov

Code of Conduct

Simple NPM package to remove any accents/ diacritics found in a string.

Table of contents

Pre-requisite

Install

# Install via NPM
$ npm i normalize-diacritics

Usage

TypeScript or ES Modules

import { normalize } from 'normalize-diacritics';

/** Assuming top-level await is enabled... */
await normalize('söme stüff with áccènts'); // 'some stuff with accents'

Browser

<script type="module">
  import { normalize } from 'https://cdn.skypack.dev/normalize-diacritics@latest';

  // --snip
</script>

Demo

Edit normalize-diacritics demo

deno

👉 Check out the deno module at deno_mod/normalize_diacritics.

API Reference

normalize([input])

  • input <string> Input string that contains accents/diacritics.
  • returns: <Promise<string>> Promise which resolves with normalized input string.

This method normalizes any accents/ diacritics found in a given input string and output a normalized string as a result.

normalizeSync([input])

This methods works the same as normalize([input]) except that this is the synchronous version.

Contributing

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT License © Rong Sen Ng

5.0.1

1 year ago

5.0.0

1 year ago

4.0.1

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.0.11-rc.0

3 years ago

3.0.12

3 years ago

3.0.10

3 years ago

3.0.11

3 years ago

4.0.0-rc.0

3 years ago

4.0.0

3 years ago

3.0.12-rc.0

3 years ago

3.0.9

3 years ago

3.0.8

3 years ago

3.0.8-rc.0

3 years ago

3.0.7-rc.1

3 years ago

3.0.7-rc.0

3 years ago

3.0.7

3 years ago

3.0.1-rc.0

3 years ago

3.0.4-rc.0

3 years ago

3.0.4-rc.1

3 years ago

3.0.4-rc.2

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.2-rc.0

3 years ago

3.0.6-rc.0

3 years ago

3.0.0

4 years ago

3.0.0-rc.2

4 years ago

3.0.0-rc.1

4 years ago

3.0.0-rc.0

4 years ago

2.15.1-rc.2

4 years ago

2.15.1-rc.1

4 years ago

2.14.0

4 years ago

2.13.2

4 years ago

2.13.1

4 years ago

2.13.0

4 years ago

2.13.0-rc.0

4 years ago

2.12.0

5 years ago

2.11.0

5 years ago

2.11.1

5 years ago

2.11.1-rc.0

5 years ago

2.10.0

5 years ago

2.9.0

5 years ago

2.8.0

6 years ago

2.7.0

6 years ago

2.6.1

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.5.1

7 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago