baghel-utils

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i baghel-utils

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • abhi_baghel