Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 414 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 414 Bytes

Monetochka

Simple, fast and zero-dependency currency formatting library.

Usage

npm install monetochka --save
import { format } from 'monetochka';

format(10, 'USD'); // $10.00
format(20000, 'RUB'); // 20 000,00 ₽
format(350590, 'EUR', { siRounding: true, siPrecision: 1 }); // 350,6K € 
format(18.729361, 'GBP', { maximumFractionDigits: 0 }); // £19

License

MIT