1.0.2 • Published 5 years ago
baghel-utils v1.0.2
Baghel Utils Packge
This Package Contains Some Useful Utility Functions
Usage
truncate
const bg = require('bg')
console.log(bg.truncate('Provide Long Text'))
output - 'Provided Long Text ...'
Argument List
- @Required - text
- @Optional - limit - Default = 20
- @Optional - end - Default = '...'
numeral
const bg = require('bg')
console.log(bg.numeral(555))
output = 555th
Argument List
- @Required - number
capitalize
const bg = require('bg')
console.log(bg.capitalize('here we go'))
output - Here We Go
Argument List
- @Required - string
isEmpty
const bg = require('bg')
console.log(bg.isEmpty({}))
output - true
Argument List
- @Required - text or object