A lightweight zero dependency libray to replace Umlauts (Diacritics) from your strings.
npm i deumlaut
# or
yarn add deumlautconst { deumlaut } = require('deumlaut')
// or
import { deumlaut } from 'deumlaut'
deumlaut('Tschüss') // Tschuess
deumlaut('Çarşı', 'tr') // Carsi
// For more examples, you can check the "tests" folder.| Position | Name | Description | Required | Type |
|---|---|---|---|---|
| 1 | Text | Text to remove diacritics | true |
string |
| 2 | Locale | Your language to parse | false |
'de' or 'tr' |
| 3 | Options | Deumlaut options. See Options for the details | false |
DeumlautOptions object |
| Name | Type | Default Value | Description |
|---|---|---|---|
capitalize |
boolean |
false |
Capitalizes the diacritic equilavants. |
- Currently only German and Turkish are supported.
Please check CONTRIBUTING.md
- Improve Documentation
- Add More Unit tests
- Improve support for other languages
Kaan Gökdemir - Author (@kaangokdemir) - kaangokdemir.com
