@astopo/price-formatter

1.0.5 • Public • Published

Price Formatter

A simple library for formatting prices.

Installation

npm install @astopo/price-formatter

or

yarn add @astopo/price-formatter

Usage

import { format } from '@astopo/price-formatter';

format(1);
// returns $0.01;

format(10);
// returns $0.10

format(1000);
// returns $10.00

format(10000);
// returns $100.00

format(100000);
// returns $1,000.00

Readme

Keywords

Package Sidebar

Install

npm i @astopo/price-formatter

Weekly Downloads

10

Version

1.0.5

License

MIT

Unpacked Size

17.9 kB

Total Files

9

Last publish

Collaborators

  • astopo