Remove all non valid characters. Example: change á => a or ẽ => e.
Install
Install all functions of strman
yarn add strmanor just the transliterate function
yarn add strman.transliterateUsage
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'