1.0.3 • Published 5 years ago

encode-price v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

encode-price

To install simple run:

$ npm i encode-price #or yarn add encode-price

To use is simple too

var encodePrice = require('encode-price')

//to encode
var encoded = encodePrice.encode(99.99) //#44&44

//to decode
var decoded = encodePrice.decode(encoded) //99.99

This lib was created for a simple task that the product owner needed to mask the price in Woocommerce Variation description.