1.0.2 • Published 5 years ago

baghel-utils v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago