0.0.1 • Published 5 years ago

@kolkov/url-translit v0.0.1

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

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.