New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vokativ-js

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vokativ-js

Port of PHP Vocative library for Serbian language

latest
Source
npmnpm
Version
3.3.0
Version published
Weekly downloads
14
-61.11%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

Vocative

FAQs

Package last updated on 04 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts