add-number-suffix
This module adds suffix for any given number (positive, zero, negative).
Getting Started
Install the module using the following command.
npm i add-number-suffix
Example
Below given is the example to use this package.
const suffix = require('add-number-suffix');
let suffix = suffix.addSuffix(2);
console.log(suffix); // Returns 2nd
Authors
- Vishweswaran P - Initial work - Github
License
This project is licensed under the ISC License.