Socket
Book a DemoInstallSign in
Socket

dlbr

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dlbr

Format currency

latest
Source
npmnpm
Version
1.0.15
Version published
Maintainers
2
Created
Source

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

Keywords

format

FAQs

Package last updated on 29 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts