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

libwords

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libwords

A simple library for word utilities

latest
Source
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

libwords

libwords is a tiny library for word utils.

DEVELOPMENT version

Usage

const ln = require("libnouns");

console.log(ln.plural(2, "apple")) // => 2 apples
console.log(ln.wordPlural("match")) // => matches
console.log(ln.wordSingular("queries")) // => query
console.log(ln.wordSingular("freebies", true)) // => freebie

The second parameter in ln.wordSingular is whether the word, if it ends in "ies", should end in 'y' or 'ie'.

Documentation

  • Documentation

Keywords

plural

FAQs

Package last updated on 20 Sep 2018

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