@kolkov/url-translit
v0.0.1
Published
Text to URL transliteration util.
Downloads
4
Readme
UrlTranslit
Text to URL transliteration util.
Installation
via npm
npm install @kolkov/url-translit
Example
import {translit} from "@kolkov/url-translit";
and then in code for example in Angular component
updatePath() {
const pathValue = this.form.get("path").value;
if (pathValue === '') {
const value = this.form.get("title").value;
const urlPathValue = translit(value);
this.form.patchValue({"path": urlPathValue});
}
}
License
MIT
Generator
This library was generated with Angular CLI version 8.0.0-rc.4.