rem-to-px
Replace rem units with px
Last updated 6 years ago by parshap .
Public Domain · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rem-to-px 
SYNC missed versions from official npm registry.

rem-to-px

Replace rem units with px

Usage

var remtopx = require("rem-to-px");
console.log(remtopx("div { width:2rem }"));
// -> "div { width:32px }"

API

remtopx(css, options)

Replace rem units found in the css string with px.

  • options.size: The size of 1 rem in px (default: 16)

Installation

npm install rem-to-px

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |