px_to_rem

0.0.1 • Public • Published

Installation

  $ npm install px_to_rem 

Px_to_REM

Utility for converting font-size css styles using px units to rem

Usage

  var px_to_rem = require('px_to_rem');
  var css = "h1 { \n font-size: 12px;\n }";
  
  var output = px_to_rem.convert(css);
  
  console.log(output);

Command Line Tool

Also included is a command line tool that takes a css file as an argument (cwd = base folder of plugin)

  $ ./px_to_rem style.css

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i px_to_rem

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • songawee