@surajkrishna/pxtorem

0.1.4 • Public • Published

Build Status

Coverage Status

pxtorem

=====================

A small library that convert pixel to rem

Installation

npm install @surajkrishna/pxtorem

Usage

Common JS var pxtorem = required('@surajkrishna/pxtorem');

Modules import pxtorem from "@surajkrishna/pxtorem";

inside styled component css/js file font-size: ${pxtorem(24)}

Output should be font-size: 1.5rem

Test

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Readme

Keywords

Package Sidebar

Install

npm i @surajkrishna/pxtorem

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

3.78 kB

Total Files

6

Last publish

Collaborators

  • surajkrishna