curr-form
v1.5.1
Published
This is a price formatter that is used to format the price for your currency.
Downloads
22
Maintainers
Readme
Documentation
Usage
const {PFormatter} = require("curr-form");
or
import {PFormatter} from "curr-form";
Examples
const price = PFormatter(1200, "euro");
=> "€ 1 200"
const price = PFormatter(1200, "dollar", true, "text");
=> "1 200 USD"
const price = PFormatter(1200000, "gbp", true, "sign");
=> "1 200 000 £"
const price = PFormatter(1200000, "gbp", false, "sign");
=> "£ 1 200 000"
------------------------------------------------------
Read function like: PFormatter(number: 1200000, currency: "gbp",isRight: true,SignOrText: "sign");
------------------------------------------------------
Typescript available!
------------------------------------------------------
Available currencies: euro, dollar, uah, rub, gbp, franc
Playground with library and examples: https://curr-form-playground.vercel.app
Donation
MY BEP20 - 0x882d4b6d85f508343490c0e2be1501956bc8fbaa