0.1.4 • Published 2 years ago
@kevingio/number-utils v0.1.4
Simple and Useful Number Utility
Instalation
Npm
npm install @kevingio/number-utils
Yarn
yarn add @kevingio/number-utils
Available Functions
Here are the functions that available in this package Utility | Description --- | --- toIDR | format a string or number with Rp prefix and thousand separator removeNonNumber | remove non number characters from string getRandomNumber | get random string character with specified length thousandSeparator | return a string or number with thousand separator
How to use
You can refer to this for the usage
toIDR
import toIDR from '@kevingio/number-utils/dist/helpers/toIDR';
removeNonNumber
removeNonNumber toIDR from '@kevingio/number-utils/dist/helpers/removeNonNumber';
getRandomNumber
getRandomNumber toIDR from '@kevingio/number-utils/dist/helpers/getRandomNumber';
thousandSeparator
thousandSeparator toIDR from '@kevingio/number-utils/dist/helpers/thousandSeparator';