Package Exports
- sorp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sorp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sorp
Returns a singular or plural form depending on a given number.
Does not generate plural forms for you. There are plenty of other modules that do that. This module omits that overhead deliberately.
Installation
Requires Node.js 4.0.0 or above.
npm i sorp
The module exports a single function.
Usage Example
const sorp = require('sorp')
sorp(0, 'thing', 'things') // 'things'
sorp(1, 'thing', 'things') // 'thing'
sorp(2, 'thing', 'things') // 'things'