Nucleus Powered Mitochondria

    numbertoclpformater

    1.0.0 • Public • Published

    numberToCLPFormater

    transforms a number to currency used in Chile (Chilean Pesos).

    npm version circleci status

    NPM package

    USE:

    var number = require('./numberToCLPFormater.js').numberToCLPFormater;
    
    number(876142) 
    // $876.142
    
    Change currency symbol:
    number(981426719, 'CLP$');
    // CLP$981.426.719
    
    Display cents, remove currency symbol
    number(1001, false, true);
    // 1.001,00
    
    Negative number
    number(-89163729);
    // $-89.163.729
    

    Install

    npm i numbertoclpformater

    DownloadsWeekly Downloads

    31

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • juanbrujo