encode-price

1.0.3 • Public • Published

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.

/encode-price/

    Package Sidebar

    Install

    npm i encode-price

    Weekly Downloads

    4

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    2.89 kB

    Total Files

    4

    Last publish

    Collaborators

    • kelvincampelo