yomade
v1.0.0
Published
Small helpers for formatting text and Naira amounts
Maintainers
Readme
@yomade/text-helpers
Small helpers for formatting text and Naira amounts.
Install
npm install @yomade/text-helpers
Usage
const {capitalize, slugify, truncate, formatNaira } = require("@yomade/text-helpers");
capitalize("hello world"); //Hello world" slugify("Learn Node JS"); //"Learn-node-JS" truncate("A very long sentence", 6); //"A very..." formatNaira(5000); //"N5,000.00"
