deumlaut
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Deumlaut

License: MIT npm package downloads size

A lightweight zero dependency libray to replace Umlauts (Diacritics) from your strings.

npm i deumlaut

# or

yarn add deumlaut

Usage

const { 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.

Parameters

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

Options

Name Type Default Value Description
capitalize boolean false Capitalizes the diacritic equilavants.

Supported Languages

  • Currently only German and Turkish are supported.

Contributing

Please check CONTRIBUTING.md

TODO

  • Improve Documentation
  • Add More Unit tests
  • Improve support for other languages

Contributors

Kaan Gökdemir - Author (@kaangokdemir) - kaangokdemir.com

License

MIT

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i deumlaut

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    6.78 kB

    Total Files

    13

    Last publish

    Collaborators

    • kaangokdemir