Giter VIP home page Giter VIP logo

pluralizer.js's Introduction

✏️ Pluralizer.js

NPM Package Version Code coverage badge Software License GitHub Repo stars GitHub issues

Pluralizer.js is a simple zero-dependency lightweight type-safe pluralizer library for any project!

⭐ Please give this project a star if you like it, so others can see, use, and contribute to it!

📦 Installation

You can install pluralizer.js with NPM, Yarn, or PNPM.

# NPM
$ npm install --save pluralizer.js
# Yarn
$ yarn add pluralizer.js
# PNPM
$ pnpm install --save pluralizer.js

The output should look something like this (at least with NPM):

$ npm install --save pluralizer.js
> added 1 package, and audited > X packages in 5s
>
> X packages are looking for funding
>   run `npm fund` for details
>
> found X vulnerabilities
$ # Pluralizer.js is successfully installed!

👨‍💻 Usage

Just import the function and the pluralizer and use 'em!

const numberOfCats = 3;
const myPluralizedString = pluralNew(["s"])`I have ${numberOfCats} cat${_FP}!`;

console.log(myPluralizedString); // "I have 3 cats!"

For our documentation about our other functions, see their JSDoc's @example until we create proper documentation. Thank you for your patience

pluralizer.js's People

Contributors

leiloukou avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.