1.5.1 • Published 2 years ago
curr-form v1.5.1
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
1.5.1
2 years ago
1.5.0
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.4
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago