3.2.4 • Published 9 months ago

vokativ-js v3.2.4

Weekly downloads
5
License
MIT
Repository
github
Last release
9 months ago

Vokativ JS

NPM version

Build Status

Acknowledgement

This is a JavaScript port of PHP Vocative case library for Serbian language written by Nemanja Avramovic.

Original idea and PHP implementation can be found at Vokativ.

Installation

npm install vokativ-js

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

Usage

As promise

var Vocative = require("vokativ-js").Vocative;

var v = new Vocative();
v.make("Vuk").then((vocative) => {
  console.log(vocative);
});

With async/await

var Vocative = require("vokativ-js").Vocative;

async function demo() {
  var v = new Vocative();
  let name = await v.make("Vuk");
  console.log(name);
}

demo();

With Typescript

import { Vocative } from "vokativ-js";

let v = new Vocative();

v.make("Vuk").then((vocative) => {
  console.log(vocative);
});

Synchronous method

import { Vocative } from "vokativ-js";

let v = new Vocative();

console.log(v.call("Vuk"));

Note:

Due to significant similarity, this library should also work just fine with former Yugoslav languages such as Croatian, Bosnian, Montenegrin, but if there are any rules that were missed feel free to contact me or make a pull request.

3.2.4

9 months ago

3.2.1

1 year ago

3.2.0

1 year ago

3.2.3

1 year ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.10

5 years ago

3.0.9

5 years ago

3.0.8

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago