Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Pull request Compare This branch is 10 commits ahead of kondratyevdev:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore updated Sep 17, 2016
README.md updated Sep 17, 2016
binding.gyp windows fixes Sep 17, 2016
iconvlite.cpp Fix memory leaks and corruption Sep 22, 2016
iconvlite.h Fix memory leaks and corruption Sep 22, 2016
index.cpp Fix memory leaks and corruption Sep 22, 2016
index.js updated Sep 17, 2016
package.json updated Sep 17, 2016
test.js Fix memory leaks and corruption Sep 22, 2016
vkext_flex.c Fix memory leaks and corruption Sep 22, 2016
vkext_flex.h Fix memory leaks and corruption Sep 22, 2016
vkext_flex_auto.c updated Sep 17, 2016

README.md

node-vk-flex

Нативный модуль для Node.js для склонения имен. Использует vkext/flex из KittenPHP. Включена поддержка русского и украинского.

Установка

npm install vk-flex

API

vkflex.setLang(lang) - настройка языка.

  • lang - строка, может быть ru или uk.

vkflex.name(name, sex, nameCase) или vkflex.surname(surname, sex, nameCase) - склоняет имя или фамилию.

  • name или surname - строка;
  • sex - число, 0 - мужской, 1 - женский;
  • nameCase - падеж: Gen, Dat, Acc, Ins или Abl.
You can’t perform that action at this time.