Skip to content

💸 Modern JavaScript money and currency utility library 💸

License

Notifications You must be signed in to change notification settings

macdonaldr93/bloombug-money

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@bloombug/money

NPM npm bundle size (scoped)

A simple and consistent library for dealing with JavaScript money and currency in a browser & Node.js.

import { Mint, USD } from '@bloombug/money';

const { Money } = new Mint();

const wallet = Money();
//=> Money { amount: 0, currency: 'USD' }

const payment = Money(100, USD);
//=> Money { amount: 100, currency: 'USD' }

wallet.add(payment);
//=> Money { amount: 100, currency: 'USD' }

Installation

npm install @bloombug/money --save
yarn add @bloombug/money

Docs

See docs site for more details, API, and other docs.

Examples

View examples

About

💸 Modern JavaScript money and currency utility library 💸

Resources

License

Stars

Watchers

Forks

Packages

No packages published