JSPM

  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q57523F
  • License MIT

Port of PHP Vocative library for Serbian language

Package Exports

  • vokativ-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vokativ-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vokativ JS

Port of PHP Vocative library for Serbian language written by Nemanja Avramovic.

Original idea and PHP implementation can be found at Vokativ.

This library is port of original library for nodeJS and can be installed via npm package manager.

Installation

npm install vokativ-js

Optionally you can add --save flag to update package.json dependency list

Usage

var vocative = require('vokativ-js');

console.log(vocative('Vuk'));

Result of the above would be Vuče.

Also, you can use cyrillic script. So passing latin script name will result in latin script response, and passing cyrillic script name will return cyrillic vocative case.