Nomad Packaging Mechanism

    converteasy

    1.0.4 • Public • Published

    ConvertEasy 1.0.4

    A Simple way to convert local currency, length, height and other metrics.

    New Features!

    • Convert number format to currency local.
    • Now Can you use this library to generate unique Id numeric, string customized for your primaries Keys.

    Development

    Want to contribute? Great!

    ConvertEasy would love your help to grow.

    Open your favorite Terminal and run these commands.

    First Tab:

    $ npm i converteasy

    For ES6:

    import {convertMoney} from 'converteasy'

    For lower JS:

    const {convertMoney} = require ('converteasy')

    For use you just need pass three parameters to function: - Local = "pt-br" - Currency = "BRL" - Value = 350

    convertMoney('pt-br', 'BRL', 1350)

    The return will be:

    R$ 1.350,00

    Convert Date to ISO string:

    For ES6:

    import {convertIsoToDate} from 'converteasy'

    For lower JS:

    const {convertIsoToDate} = require ('converteasy')

    For use you just need pass three parameters to function: - ISO: 2020-09-15T18:45:26.621Z

    convertIsoToDate('2020-09-15T18:45:26.621Z')

    The return will be:

    2020-9-15

    New Methods:

    For Generate a numeric random ID with custom length:

    genNumId(length)

    For generate a string unique ID with customized length:

    uniId (length) 

    For generate a string unique ID complete:

    uniqueId ()

    License

    MIT

    Install

    npm i converteasy

    DownloadsWeekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    3.67 kB

    Total Files

    3

    Last publish

    Collaborators

    • gocore