{"_id":"postcss-px2rem","_rev":"2955825","name":"postcss-px2rem","description":"Postcss version of px2rem","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"songsiqi","email":""}],"time":{"modified":"2023-04-27T06:12:19.000Z","created":"2015-06-30T16:42:32.542Z","0.3.0":"2016-05-09T14:59:26.815Z","0.2.0":"2015-11-10T07:46:55.218Z","0.1.6":"2015-09-05T14:02:35.706Z","0.1.5":"2015-08-03T02:01:13.888Z","0.1.4":"2015-07-03T06:22:47.960Z","0.1.3":"2015-07-02T09:51:33.922Z","0.1.2":"2015-06-30T17:53:52.561Z","0.1.1":"2015-06-30T17:25:42.920Z","0.1.0":"2015-06-30T16:42:32.542Z"},"users":{},"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"versions":{"0.3.0":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.3.0","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"dependencies":{"postcss":"^5.0.0","px2rem":"~0.5.0"},"devDependencies":{"mocha":"^2.1.0","autoprefixer":"^6.1.0"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"31a65f4b7bfba4eb1e78dadc5cd99f6b69551b1a","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.3.0","_shasum":"0dfa4e8a268fa7478273f0c4b47c619834894041","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"0dfa4e8a268fa7478273f0c4b47c619834894041","size":6547,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-px2rem-0.3.0.tgz_1462805966367_0.29627020936459303"},"directories":{},"publish_time":1462805966815,"_hasShrinkwrap":false,"_cnpm_publish_time":1462805966815,"_cnpmcore_publish_time":"2021-12-16T18:50:37.758Z"},"0.2.0":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.2.0","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^5.0.0","px2rem":"~0.4.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer":"~6.1.0"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"e04c3d701677ba9285bcdddd3e1091d6ba6923e7","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.2.0","_shasum":"05361a1d555104acd9c350e54191e0ac4983bb8a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"05361a1d555104acd9c350e54191e0ac4983bb8a","size":6173,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.2.0.tgz"},"publish_time":1447141615218,"_hasShrinkwrap":false,"_cnpm_publish_time":1447141615218,"_cnpmcore_publish_time":"2021-12-16T18:50:37.979Z"},"0.1.6":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.6","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.4.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"549aedd96c17efc1656d931162b91d355d7cd358","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.6","_shasum":"f751bb1bc1bfaa00ff12149f480afa7258f1674d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"f751bb1bc1bfaa00ff12149f480afa7258f1674d","size":6175,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.6.tgz"},"publish_time":1441461755706,"_hasShrinkwrap":false,"_cnpm_publish_time":1441461755706,"_cnpmcore_publish_time":"2021-12-16T18:50:38.188Z"},"0.1.5":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.5","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"610f56d7f21c940b31da0166c00fe66a3c8d7fa7","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.5","_shasum":"b4d3a80ba94b23634d2fa354b95f5dc8c4177752","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"b4d3a80ba94b23634d2fa354b95f5dc8c4177752","size":5941,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.5.tgz"},"publish_time":1438567273888,"_hasShrinkwrap":false,"_cnpm_publish_time":1438567273888,"_cnpmcore_publish_time":"2021-12-16T18:50:38.428Z"},"0.1.4":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.4","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0","extend":"~2.0.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"5226e679c87f97a3fd6fa2a3e7eb2c5b82275583","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.4","_shasum":"b231ce814e9b6154394313edb3d4fcf7f7535814","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"b231ce814e9b6154394313edb3d4fcf7f7535814","size":5943,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.4.tgz"},"publish_time":1435904567960,"_hasShrinkwrap":false,"_cnpm_publish_time":1435904567960,"_cnpmcore_publish_time":"2021-12-16T18:50:38.652Z"},"0.1.3":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.3","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"a1c2ab0e01f26d012ac79a66ad176473fd51318e","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.3","_shasum":"3b59cde764dbd6e4ed589384e28c1cfce5b9f03f","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"3b59cde764dbd6e4ed589384e28c1cfce5b9f03f","size":5897,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.3.tgz"},"publish_time":1435830693922,"_hasShrinkwrap":false,"_cnpm_publish_time":1435830693922,"_cnpmcore_publish_time":"2021-12-16T18:50:38.865Z"},"0.1.2":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.2","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0","extend":"~2.0.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"77959a7dea17deea577e5efef33f794d4ad75873","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.2","_shasum":"35dda56f48f9e39a12d88c8e1675ac8e1e54630d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"35dda56f48f9e39a12d88c8e1675ac8e1e54630d","size":5909,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.2.tgz"},"publish_time":1435686832561,"_hasShrinkwrap":false,"_cnpm_publish_time":1435686832561,"_cnpmcore_publish_time":"2021-12-16T18:50:39.067Z"},"0.1.1":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.1","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0","extend":"~2.0.0"},"devDependencies":{"istanbul":"^0.3.6","coveralls":"^2.10.0","mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha","test-travis":"node node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"fe0b440cf5924e24a9adf1b802169f5294c7aae2","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.1","_shasum":"24d183d0f97dd5fafd0624d553efc99a2a9dc818","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"24d183d0f97dd5fafd0624d553efc99a2a9dc818","size":6629,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.1.tgz"},"publish_time":1435685142920,"_hasShrinkwrap":false,"_cnpm_publish_time":1435685142920,"_cnpmcore_publish_time":"2021-12-16T18:50:39.316Z"},"0.1.0":{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.0","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0","extend":"~2.0.0"},"devDependencies":{"istanbul":"^0.3.6","coveralls":"^2.10.0","mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha","test-travis":"node node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --reporter dot"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"17f4a9cee2aed76a00fc185d65eb6a5917efca12","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.0","_shasum":"bdea5539d2cc75204c622d018ef553c423f1f91e","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":""}],"dist":{"shasum":"bdea5539d2cc75204c622d018ef553c423f1f91e","size":6585,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-px2rem/download/postcss-px2rem-0.1.0.tgz"},"publish_time":1435682552542,"_hasShrinkwrap":false,"_cnpm_publish_time":1435682552542,"_cnpmcore_publish_time":"2021-12-16T18:50:39.562Z"}},"readme":"# postcss-px2rem\n\nThis is a [postcss](https://www.npmjs.com/package/postcss) plugin of [px2rem](https://www.npmjs.com/package/px2rem).\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[npm-image]: https://img.shields.io/npm/v/postcss-px2rem.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/postcss-px2rem\n[travis-image]: https://img.shields.io/travis/songsiqi/px2rem-postcss.svg?style=flat-square\n[travis-url]: https://travis-ci.org/songsiqi/px2rem-postcss\n[downloads-image]: http://img.shields.io/npm/dm/postcss-px2rem.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/postcss-px2rem\n\n## Usage\n\n### Node\n\n```\nvar postcss = require('postcss');\nvar px2rem = require('postcss-px2rem');\nvar originCssText = '...';\nvar newCssText = postcss().use(px2rem({remUnit: 64})).process(originCssText).css;\n```\n\n**Please see [px2rem](https://www.npmjs.com/package/px2rem) for more information about the features and usage of px2rem.**\n\n### Gulp\n\n```\nnpm install gulp-postcss\n```\n\n```\nvar gulp = require('gulp');\nvar postcss = require('gulp-postcss');\nvar px2rem = require('postcss-px2rem');\n\ngulp.task('default', function() {\n  var processors = [px2rem({remUnit: 75})];\n  return gulp.src('./src/*.css')\n    .pipe(postcss(processors))\n    .pipe(gulp.dest('./dest'));\n});\n```\n\n### Webpack\n\n```\nnpm install postcss-loader\n```\n\n```\nvar px2rem = require('postcss-px2rem');\n\nmodule.exports = {\n  module: {\n    loaders: [\n      {\n        test: /\\.css$/,\n        loader: \"style-loader!css-loader!postcss-loader\"\n      }\n    ]\n  },\n  postcss: function() {\n    return [px2rem({remUnit: 75})];\n  }\n}\n```\n\n### Grunt\n\n```\nnpm install grunt-postcss\n```\n\n```\nmodule.exports = function(grunt) {\n  grunt.initConfig({\n    postcss: {\n      options: {\n        processors: [\n          px2rem({remUnit: 75})\n        ]\n      },\n      dist: {\n        src: 'src/*.css',\n        dest: 'build'\n      }\n    }\n  });\n  grunt.loadNpmTasks('grunt-postcss');\n  grunt.registerTask('default', ['postcss']);\n}\n```\n\n## Change Log\n\n### 0.3.0\n\n* Deps: px2rem@~0.5.0\n  * Support Animation keyframes (no `/*px*/` comment).\n\n### 0.2.0\n\n* Deps: postcss@^5.0.0\n\n### 0.1.6\n\n* Deps: px2rem@~0.4.0\n  * The generated [data-dpr] rules follow the origin rule, no longer placed at the end of the whole style sheet.\n  * Optimize 0px, do not generate 3 [data-dpr] rules.\n\n### 0.1.5\n\n* Do not extend current root node.\n\n### 0.1.4\n\n* Fix bug while working with webpack loader.\n\n### 0.1.0\n\n* First release.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/songsiqi/px2rem-postcss","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"license":"MIT"}