Remove all non valid characters. Example: change á => a or ẽ => e.
Install
Install all functions of strman
yarn add strman
or just the transliterate function
yarn add strman.transliterate
Usage
import { transliterate } from 'strman'
// OR
import transliterate from 'strman.transliterate'
Parameters:
Name | Type | Description |
---|---|---|
value |
String | The String! |
- Source:
Returns:
String without non valid characters.
- Type
- String
Example
const title = 'strmáñ'
transliterate(title)
// => 'strman'