Skip to content

Simple, fast and zero-dependency currency formatting library.

License

Notifications You must be signed in to change notification settings

ozio/monetochka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple, fast and zero-dependency currency formatting library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published