@bearcookie/format-money
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

format-money

format money

Install

npm i @bearcookie/format-money
or
yarn add @bearcookie/format-money

Usage

import useMoney from "@bearcookie/format-money";
const { divide, multipole } = useMoney()

// divide
const money = divide(123456)
console.log(money.value) // 123,4.56
console.log(money.real) // 1234.56
console.log(money.origin) // 123456

// multiple
multipole(123456) // 12345600

API

Package Sidebar

Install

npm i @bearcookie/format-money

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

12.4 kB

Total Files

11

Last publish

Collaborators

  • bearcookie