UNPKG

plury

Version:

A Node.js module that returns the plural form of any noun

22 lines (21 loc) 499 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var pluralize = require("pluralize"); /** * @Method: Returns the plural form of any noun. * @Param {string} * @Return {string} */ function getPlural(str) { return pluralize.plural(str); } exports.getPlural = getPlural; /** * @Method: Returns the Singular form of any noun. * @Param {string} * @Return {string} */ function getSingular(str) { return pluralize.singular(str); } exports.getSingular = getSingular;