Natural Preference for Minification
    Wondering what’s next for npm?Check out our public roadmap! »

    css-unit-converter
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.2 • Public • Published

    css-unit-converter Build Status

    Converts CSS values from one unit to another

    Installation

    npm install css-unit-converter

    Usage

    var convert = require('css-unit-converter');
    //convert 1 inch to pc
    convert(1, 'in', 'pc'); // 6
     
    //convert 10px to cm with a maximum of 10 decimals
    convert(10, 'px', 'cm', 10); // 0.2645833333

    Install

    npm i css-unit-converter

    DownloadsWeekly Downloads

    2,375,331

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    5.61 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar