0.0.0 • Published 9 years ago

pluriel v0.0.0

Weekly downloads
5
License
BSD-2-Clause
Repository
github
Last release
9 years ago

Pluriel Build Status

Ajoute un pluriel simple au nom singulier

Installation

$ npm install --save pluriel

Usage

var pluriel = require('pluriel');

pluriel('chou', 5);
//=> 'choux'

plur('hero', 'heroes', 5);
//=> 'heroes'

API

pluriel(str, pluriel, nb)

str

Type: string

Le nom à mettre au pluriel

pluriel

Type: string Default: str + s

Le nom au pluriel.

nb

Type: number

nb pour dire c'est à mettre au pluriel ou au singulier.