smash-numbers

1.2.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i smash-numbers

Weekly Downloads

4

Version

1.2.5

License

ISC

Unpacked Size

4.55 kB

Total Files

4

Last publish

Collaborators

  • sdfygamed