1.0.2 • Published 3 years ago

price-text-format v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

price-text-format

Use price-text-format if you want to convert you price in your app for good looking.

install

npm

npm install price-text-format

yarn

yarn add price-text-format

usage

import React from "react;
import PriceFormat from "price-text-format";


const App = () => {
    return (
        <div>
            <h1>{PriceFormat(100000)}</h1>
        </div>
    )
}

// output =  "100.000"

penny

Pass the "true" parameter after price for the showing penny.

import React from "react;
import PriceFormat from "price-text-format";


const App = () => {
    return (
        <div>
            <h1>{PriceFormat(100000, true)}</h1>
        </div>
    )
}

// output =  "1.000.00"
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago