entipic.text

0.0.3 • Public • Published

entipic text

Entipic slug & uniquename module

Interface

  • uniqueName(text) - generate a topic unique name from a text;
    • Throws Invalid uniquename error
  • cultureUniqueName(uniquename, lang, country) - format a culture unique name from a text;
    • Throws Invalid uniquename param
  • parseCultureUniqueName(uniquename) - parse a formated culture unique name: ios__en-us -> {name: 'ios', lang: 'en', country: 'us'};
  • isCultureUniqueName(uniquename) - detect if a unique name is a culture unique name;
  • atonic(text) - remove text accents;
  • isCyrillic(text) - detects if a text is cyrillic;

Readme

Keywords

Package Sidebar

Install

npm i entipic.text

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • mitica