1.0.15 • Published 8 years ago

dlbr v1.0.15

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Format currency

To use JavaScript Intl API, Node.js needs to run with --icu-data-dir=node_modules/full-icu option that provides us to have Intl API in our Node environment

Build Setup

# install dependencies
$ npm i

# development
$ npm run dev

# test
$ npm t

Example

# USD dollar
$ formatCurrency('en-US', 99.99)
> $99.99
# RSD dinar
$ formatCurrency('sr-RS', 99.99)
> 99.99 RSD
1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago