{"_id":"postcss-pxtorem","_rev":"3209526","name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","dist-tags":{"latest":"6.1.0"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"time":{"modified":"2024-02-07T08:41:37.000Z","created":"2015-02-02T21:01:03.790Z","6.1.0":"2024-01-20T03:17:15.435Z","6.0.0":"2021-03-06T03:21:03.587Z","5.1.1":"2020-03-04T03:00:51.523Z","5.1.0":"2020-03-03T15:00:06.941Z","5.0.0":"2020-03-02T01:43:04.586Z","4.0.1":"2017-04-27T23:47:28.249Z","4.0.0":"2017-01-15T22:28:04.628Z","3.3.1":"2015-12-23T02:59:41.354Z","3.3.0":"2015-12-23T00:52:42.134Z","3.2.0":"2015-12-22T23:48:04.491Z","3.1.1":"2015-12-12T03:40:52.314Z","3.1.0":"2015-09-28T17:31:31.075Z","3.0.0":"2015-08-25T03:37:25.229Z","2.3.2":"2015-07-31T22:52:48.232Z","2.3.1":"2015-07-31T22:24:26.685Z","2.3.0":"2015-06-25T02:27:15.983Z","2.2.0":"2015-06-19T22:52:21.355Z","2.1.0":"2015-05-28T03:48:21.973Z","2.0.1":"2015-02-03T14:19:39.622Z","2.0.0":"2015-02-02T21:01:03.790Z"},"users":{"cuth":true,"allenmoore":true,"phritolay":true,"danielbayley":true,"irish":true,"alexdevero":true,"brofox":true},"author":{"name":"cuth"},"repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"versions":{"6.1.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"6.1.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"lint":"eslint .","test":"jasmine-node spec"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","prettier --write"]},"devDependencies":{"eslint":"^6.8.0","husky":"^4.2.3","jasmine-node":"^1.16.0","lint-staged":"^10.0.8","postcss":"^8.0.0","prettier":"^1.19.1"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"peerDependencies":{"postcss":"^8.0.0"},"gitHead":"6cf23c44f7c9798b0f9ac8aea468eeec880a5453","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@6.1.0","_nodeVersion":"20.10.0","_npmVersion":"8.5.4","dist":{"shasum":"7e6410e30426adef53bad6c4c5f00cd5f586937c","size":7457,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-6.1.0.tgz"},"_npmUser":{"name":"cuth","email":"jon@cuth.net"},"directories":{},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pxtorem_6.1.0_1705720635205_0.7534041655935724"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-20T03:17:15.435Z","publish_time":1705720635435,"_source_registry_name":"default","_cnpm_publish_time":1705720635435},"6.0.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"6.0.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"lint":"eslint .","test":"jasmine-node spec"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","prettier --write"]},"devDependencies":{"eslint":"^6.8.0","husky":"^4.2.3","jasmine-node":"^3.0.0","lint-staged":"^10.0.8","postcss":"^8.0.0","prettier":"^1.19.1"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"peerDependencies":{"postcss":"^8.0.0"},"gitHead":"122649015322214f8e9d1ac852eb11c0791b634b","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@6.0.0","_nodeVersion":"12.18.0","_npmVersion":"7.6.0","dist":{"shasum":"f228a4d05d8a73f0642eabae950e2b19836366d7","size":7376,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-6.0.0.tgz"},"_npmUser":{"name":"cuth","email":"jon@cuth.net"},"directories":{},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pxtorem_6.0.0_1615000863414_0.413472929273893"},"_hasShrinkwrap":false,"publish_time":1615000863587,"_cnpm_publish_time":1615000863587},"5.1.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"5.1.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"lint":"eslint .","test":"jasmine-node spec"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","prettier --write"]},"devDependencies":{"eslint":"^6.8.0","husky":"^4.2.3","jasmine-node":"^3.0.0","lint-staged":"^10.0.8","prettier":"^1.19.1"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^7.0.27"},"gitHead":"6d339e39ecbe44e75f7d159302e017d120c46814","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@5.1.1","_nodeVersion":"12.10.0","_npmVersion":"6.14.1","dist":{"shasum":"198a68c10f9ad2d42370ef66299d7b3168f8cffa","size":7338,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-5.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-5.1.1.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmUser":{"name":"cuth","email":"jon@cuth.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pxtorem_5.1.1_1583290851418_0.38767418599169545"},"_hasShrinkwrap":false,"publish_time":1583290851523,"_cnpm_publish_time":1583290851523},"5.1.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"5.1.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"lint":"eslint .","test":"jasmine-node spec"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","prettier --write"]},"devDependencies":{"eslint":"^6.8.0","husky":"^4.2.3","jasmine-node":"^3.0.0","lint-staged":"^10.0.8","prettier":"^1.19.1"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^7.0.27"},"gitHead":"2836d29b07bc328e989c2599d6abe24296bf60f8","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@5.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.14.1","dist":{"shasum":"8e94c952647bbe82cb72a1d3dfa06e3127865168","size":7260,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-5.1.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmUser":{"name":"cuth","email":"jon@cuth.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pxtorem_5.1.0_1583247606838_0.8436676002623817"},"_hasShrinkwrap":false,"publish_time":1583247606941,"_cnpm_publish_time":1583247606941},"5.0.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"5.0.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"lint":"eslint .","test":"jasmine-node spec"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","prettier --write"]},"devDependencies":{"eslint":"^6.8.0","husky":"^4.2.3","jasmine-node":"^3.0.0","lint-staged":"^10.0.8","prettier":"^1.19.1"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^7.0.27"},"gitHead":"679b11adae3d9fd5ee44d5dcfb8b77d39ccec2f5","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@5.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.13.7","dist":{"shasum":"b38c48892147e78f2313ef14e10383fd2311621e","size":6717,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-5.0.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmUser":{"name":"cuth","email":"jon@cuth.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pxtorem_5.0.0_1583113384458_0.12224574824420387"},"_hasShrinkwrap":false,"publish_time":1583113384586,"_cnpm_publish_time":1583113384586},"4.0.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"4.0.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"object-assign":"^4.1.0","postcss":"^5.2.10"},"gitHead":"5dadd3b4f86e4cdcf0f162e69ac99c328ada0d4a","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@4.0.1","_shasum":"9c64d0efe4885473cc1cb0305c6ffc3ebb45b1cd","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.9.2","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"9c64d0efe4885473cc1cb0305c6ffc3ebb45b1cd","size":6618,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-4.0.1.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-pxtorem-4.0.1.tgz_1493336847611_0.21116399159654975"},"directories":{},"publish_time":1493336848249,"_cnpm_publish_time":1493336848249,"_hasShrinkwrap":false},"4.0.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"4.0.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"object-assign":"^4.1.0","postcss":"^5.2.10"},"gitHead":"22898e336f826ddebd52b4cd657e39fe2d7fb131","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@4.0.0","_shasum":"530e529793ddb0e6a3e1f064d96173b747f789f2","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"530e529793ddb0e6a3e1f064d96173b747f789f2","size":6538,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-4.0.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-pxtorem-4.0.0.tgz_1484519284041_0.24319996312260628"},"directories":{},"publish_time":1484519284628,"_cnpm_publish_time":1484519284628,"_hasShrinkwrap":false},"3.3.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.3.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/cuth/postcss-pxtorem.git"},"bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"object-assign":"^4.0.1","postcss":"^5.0.2"},"gitHead":"e1a3bff15121108143d0c2d6915ce004248784fc","homepage":"https://github.com/cuth/postcss-pxtorem#readme","_id":"postcss-pxtorem@3.3.1","_shasum":"0da39bf983b3c849ae0e3c74eca7269b13ad2044","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"0da39bf983b3c849ae0e3c74eca7269b13ad2044","size":5554,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.3.1.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1450839581354,"_cnpm_publish_time":1450839581354,"_hasShrinkwrap":false},"3.3.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.3.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem.git"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"object-assign":"^4.0.1","postcss":"^5.0.2"},"gitHead":"a4ed727f75a6cde519fcdd6210a3db069cc62b9c","homepage":"https://github.com/cuth/pxtorem#readme","_id":"postcss-pxtorem@3.3.0","_shasum":"27c64f769223ed82638ca328572bf90d8a7d51e9","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"27c64f769223ed82638ca328572bf90d8a7d51e9","size":5542,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.3.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1450831962134,"_cnpm_publish_time":1450831962134,"_hasShrinkwrap":false},"3.2.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.2.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem.git"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"object-assign":"^4.0.1","postcss":"^5.0.2"},"gitHead":"1a93ca154ecdc28ea955e3b2612f46b4d04c79ed","homepage":"https://github.com/cuth/pxtorem#readme","_id":"postcss-pxtorem@3.2.0","_shasum":"2c27276b7b062c10bc8e7053b7ad21bb237785d5","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"2c27276b7b062c10bc8e7053b7ad21bb237785d5","size":5239,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.2.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1450828084491,"_cnpm_publish_time":1450828084491,"_hasShrinkwrap":false},"3.1.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.1.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem.git"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^5.0.2"},"gitHead":"129767f502bd71b1751aff9eeefba2ac2e57a2b5","homepage":"https://github.com/cuth/pxtorem#readme","_id":"postcss-pxtorem@3.1.1","_shasum":"55b0ffd1506d4cd08f9901da5790378e750ae1c3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"55b0ffd1506d4cd08f9901da5790378e750ae1c3","size":4897,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.1.1.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1449891652314,"_cnpm_publish_time":1449891652314,"_hasShrinkwrap":false},"3.1.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.1.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem.git"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^5.0.2"},"gitHead":"56011ee4d6f650d6c7b37400b95f6071ce058c72","homepage":"https://github.com/cuth/pxtorem#readme","_id":"postcss-pxtorem@3.1.0","_shasum":"55ebbf2e613b5154855f27f490857ab787b439aa","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"55ebbf2e613b5154855f27f490857ab787b439aa","size":4731,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.1.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1443461491075,"_cnpm_publish_time":1443461491075,"_hasShrinkwrap":false},"3.0.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"3.0.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem.git"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","pixel","px","postcss","postcss-plugin"],"dependencies":{"postcss":"^5.0.2"},"gitHead":"5ecbf0e0fbfeabee2d630b1cc48601c14e41cb20","homepage":"https://github.com/cuth/pxtorem#readme","_id":"postcss-pxtorem@3.0.0","_shasum":"ed97a855495916a48d5d2596fe8b543159a514d8","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"dist":{"shasum":"ed97a855495916a48d5d2596fe8b543159a514d8","size":4313,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-3.0.0.tgz"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1440473845229,"_cnpm_publish_time":1440473845229,"_hasShrinkwrap":false},"2.3.2":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.3.2","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","postcss","postcss-plugin"],"dependencies":{"postcss":"^4.1.11"},"gitHead":"efaa815156daf520fa57eb5e3a27e79830dbf29f","homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.3.2","_shasum":"66a2651da1b05b8a2ce2b310182c23f591f9793d","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"dist":{"shasum":"66a2651da1b05b8a2ce2b310182c23f591f9793d","size":4415,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.3.2.tgz"},"directories":{},"publish_time":1438383168232,"_cnpm_publish_time":1438383168232,"_hasShrinkwrap":false},"2.3.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.3.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","postcss","postcss-plugin"],"dependencies":{"postcss":"^4.1.11"},"gitHead":"a8c1264d34335f74e139b60b3cd6fba671fbfb05","homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.3.1","_shasum":"d9ff3bf3c114456315710e7a7b756c0c94dcdeb7","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"dist":{"shasum":"d9ff3bf3c114456315710e7a7b756c0c94dcdeb7","size":4397,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.3.1.tgz"},"directories":{},"publish_time":1438381466685,"_cnpm_publish_time":1438381466685,"_hasShrinkwrap":false},"2.3.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.3.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","postcss","postcss-plugin"],"dependencies":{"postcss":"^4.1.11"},"gitHead":"0496fb17f5c592e98d04e6c9e8af6cbb553c26a3","homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.3.0","_shasum":"d3f78109c630513804117e2a7e99ac164da9e3fc","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"dist":{"shasum":"d3f78109c630513804117e2a7e99ac164da9e3fc","size":4213,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.3.0.tgz"},"directories":{},"publish_time":1435199235983,"_cnpm_publish_time":1435199235983,"_hasShrinkwrap":false},"2.2.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.2.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","postcss","postcss-plugin"],"dependencies":{"postcss":"^4.1.11"},"gitHead":"dd7de3132dddf2230372a86e7ba731f12714095f","homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.2.0","_shasum":"997f8d892bd4e757c28355bb5bb7760c46cd19e1","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"dist":{"shasum":"997f8d892bd4e757c28355bb5bb7760c46cd19e1","size":4075,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.2.0.tgz"},"directories":{},"publish_time":1434754341355,"_cnpm_publish_time":1434754341355,"_hasShrinkwrap":false},"2.1.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.1.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.1.11"},"keywords":["css","rem","postcss","postcss-plugin"],"dependencies":{"postcss":"^4.1.11"},"gitHead":"17d861f611a7865e90a629e0fd2459550a85dfd1","homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.1.0","_shasum":"7179797eab4f396483b52f24325959362fa7d9da","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"dist":{"shasum":"7179797eab4f396483b52f24325959362fa7d9da","size":3950,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.1.0.tgz"},"directories":{},"publish_time":1432784901973,"_cnpm_publish_time":1432784901973,"_hasShrinkwrap":false},"2.0.1":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.0.1","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.0.3"},"keywords":["css","rem","postcss","postcss-plugin"],"homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.0.1","dist":{"shasum":"b7d75e5fffcdb3f9744511abd4d0fb7ec783ef48","size":3899,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.0.1.tgz"},"_from":"./","_npmVersion":"1.4.6","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1422973179622,"_cnpm_publish_time":1422973179622,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-pxtorem","description":"A CSS post-processor that converts px to rem.","version":"2.0.0","author":{"name":"cuth"},"license":"MIT","repository":{"type":"git","url":"git://github.com/cuth/pxtorem"},"bugs":{"url":"https://github.com/cuth/pxtorem/issues"},"main":"index.js","scripts":{"test":"jasmine-node spec"},"devDependencies":{"jasmine-node":"~1.11.0","postcss":"^4.0.3"},"keywords":["css","rem","postcss","postcss-plugin"],"homepage":"https://github.com/cuth/pxtorem","_id":"postcss-pxtorem@2.0.0","dist":{"shasum":"5c562c314d280a2fe84870a958bc37eeb87871f1","size":3920,"noattachment":false,"key":"/postcss-pxtorem/-/postcss-pxtorem-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pxtorem/download/postcss-pxtorem-2.0.0.tgz"},"_from":"./","_npmVersion":"1.4.6","_npmUser":{"name":"cuth","email":"jon@cuth.net"},"maintainers":[{"name":"cuth","email":"jon@cuth.net"}],"directories":{},"publish_time":1422910863790,"_cnpm_publish_time":1422910863790,"_hasShrinkwrap":false}},"readme":"# postcss-pxtorem [![NPM version](https://badge.fury.io/js/postcss-pxtorem.svg)](http://badge.fury.io/js/postcss-pxtorem)\n\nA plugin for [PostCSS](https://github.com/ai/postcss) that generates rem units from pixel units.\n\n## Install\n\n```shell\n$ npm install postcss postcss-pxtorem --save-dev\n```\n\n## Usage\n\nPixels are the easiest unit to use (*opinion*). The only issue with them is that they don't let browsers change the default font size of 16. This script converts every px value to a rem from the properties you choose to allow the browser to set the font size.\n\n\n### Input/Output\n\n*With the default settings, only font related properties are targeted.*\n\n```css\n// input\nh1 {\n    margin: 0 0 20px;\n    font-size: 32px;\n    line-height: 1.2;\n    letter-spacing: 1px;\n}\n\n// output\nh1 {\n    margin: 0 0 20px;\n    font-size: 2rem;\n    line-height: 1.2;\n    letter-spacing: 0.0625rem;\n}\n```\n\n### Example\n\n```js\nvar fs = require('fs');\nvar postcss = require('postcss');\nvar pxtorem = require('postcss-pxtorem');\nvar css = fs.readFileSync('main.css', 'utf8');\nvar options = {\n    replace: false\n};\nvar processedCss = postcss(pxtorem(options)).process(css).css;\n\nfs.writeFile('main-rem.css', processedCss, function (err) {\n  if (err) {\n    throw err;\n  }\n  console.log('Rem file written.');\n});\n```\n\n### options\n\nType: `Object | Null`  \nDefault:\n```js\n{\n    rootValue: 16,\n    unitPrecision: 5,\n    propList: ['font', 'font-size', 'line-height', 'letter-spacing'],\n    selectorBlackList: [],\n    replace: true,\n    mediaQuery: false,\n    minPixelValue: 0,\n    exclude: /node_modules/i\n}\n```\n\n- `rootValue` (Number | Function) Represents the root element font size or returns the root element font size based on the [`input`](https://api.postcss.org/Input.html) parameter\n- `unitPrecision` (Number) The decimal numbers to allow the REM units to grow to.\n- `propList` (Array) The properties that can change from px to rem.\n    - Values need to be exact matches.\n    - Use wildcard `*` to enable all properties. Example: `['*']`\n    - Use `*` at the start or end of a word. (`['*position*']` will match `background-position-y`)\n    - Use `!` to not match a property. Example: `['*', '!letter-spacing']`\n    - Combine the \"not\" prefix with the other prefixes. Example: `['*', '!font*']`\n- `selectorBlackList` (Array) The selectors to ignore and leave as px.\n    - If value is string, it checks to see if selector contains the string.\n        - `['body']` will match `.body-class`\n    - If value is regexp, it checks to see if the selector matches the regexp.\n        - `[/^body$/]` will match `body` but not `.body`\n- `replace` (Boolean) Replaces rules containing rems instead of adding fallbacks.\n- `mediaQuery` (Boolean) Allow px to be converted in media queries.\n- `minPixelValue` (Number) Set the minimum pixel value to replace.\n- `exclude` (String, Regexp, Function) The file path to ignore and leave as px.\n    - If value is string, it checks to see if file path contains the string.\n        - `'exclude'` will match `\\project\\postcss-pxtorem\\exclude\\path`\n    - If value is regexp, it checks to see if file path matches the regexp.\n        - `/exclude/i` will match `\\project\\postcss-pxtorem\\exclude\\path`\n    - If value is function, you can use exclude function to return a true and the file will be ignored.\n        - the callback will pass the file path as  a parameter, it should returns a Boolean result.\n        - `function (file) { return file.indexOf('exclude') !== -1; }`\n- `unit` (String) Set the default unit to convert, default is `px`.\n\n### Use with gulp-postcss and autoprefixer\n\n```js\nvar gulp = require('gulp');\nvar postcss = require('gulp-postcss');\nvar autoprefixer = require('autoprefixer');\nvar pxtorem = require('postcss-pxtorem');\n\ngulp.task('css', function () {\n\n    var processors = [\n        autoprefixer({\n            browsers: 'last 1 version'\n        }),\n        pxtorem({\n            replace: false\n        })\n    ];\n\n    return gulp.src(['build/css/**/*.css'])\n        .pipe(postcss(processors))\n        .pipe(gulp.dest('build/css'));\n});\n```\n\n### A message about ignoring properties\nCurrently, the easiest way to have a single property ignored is to use a capital in the pixel unit declaration.\n\n```css\n// `px` is converted to `rem`\n.convert {\n    font-size: 16px; // converted to 1rem\n}\n\n// `Px` or `PX` is ignored by `postcss-pxtorem` but still accepted by browsers\n.ignore {\n    border: 1Px solid; // ignored\n    border-width: 2PX; // ignored\n}\n```\n","_attachments":{},"homepage":"https://github.com/cuth/postcss-pxtorem#readme","bugs":{"url":"https://github.com/cuth/postcss-pxtorem/issues"},"license":"MIT"}