Inspired by Django Urlify and node-slug.
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i charmap
# or
$ yarn add charmap
Then require the transform()
method directly from the package.
const { transform } = require('charmap')
transform('ظ') // th
transform('é') // e
transform('<') // less
transform('tôi tên là đức tạ') // toi ten la duc ta
Any pull requests or discussions are welcome.
Note that every pull request providing a new feature or correcting a bug should be created with appropriate unit tests.