baghel-utils
1.0.2 • Public • Published
This Package Contains Some Useful Utility Functions
const bg = require('bg')
console.log(bg.truncate('Provide Long Text'))
output - 'Provided Long Text ...'
- @Required - text
- @Optional - limit - Default = 20
- @Optional - end - Default = '...'
const bg = require('bg')
console.log(bg.numeral(555))
output = 555th
const bg = require('bg')
console.log(bg.capitalize('here we go'))
output - Here We Go
const bg = require('bg')
console.log(bg.isEmpty({}))
output - true
- @Required - text or object
Package Sidebar
Install
Weekly Downloads