0.0.1 • Published 7 years ago
@kolkov/url-translit
Licence
—
Version
0.0.1
Deps
1
Size
31 kB
Vulns
0
Weekly
0
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.