1.2.5 • Published 4 years ago

smash-numbers v1.2.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Installation

npm i smash-numbers --save

Then...

import { convert, comma } from 'smash-numbers'

console.log(convert(1000)) // 1K
console.log(comma(1000, '.')) // 1.000
console.log(scramble('test')) // estt
console.log(mock('test')) // tEsT

Options

  • convert - CAPITAL | SMALL (Defaults to CAPITAL) convert(1000, 'SMALL') // 1k
  • comma - (any thing you want) (Defaults to ,) comma(10000, '.') // 10.000
1.2.5

4 years ago

1.2.4

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago