{"name":"precss","version":"3.1.2","description":"Use Sass-like markup and staged CSS features in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/precss.git"},"homepage":"https://github.com/jonathantneal/precss#readme","bugs":{"url":"https://github.com/jonathantneal/precss/issues"},"main":"index.bundle.js","module":"index.js","files":["index.js","index.bundle.js"],"scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"echo 'Running tests...'; npm run test:ec && npm run test:js && npm run test:tape","test:ec":"echint --ignore index.bundle.js test","test:js":"eslint *.js --cache --ignore-path .gitignore --quiet","test:tape":"postcss-tape"},"engines":{"node":">=4.0.0"},"dependencies":{"postcss":"^6.0.19","postcss-advanced-variables":"^2.3.3","postcss-atroot":"^0.1.3","postcss-extend-rule":"^1.1.0","postcss-nested":"^3.0.0","postcss-preset-env":"^3.2.2","postcss-property-lookup":"^2.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^8.2.2","babel-preset-env":"^1.6.1","echint":"^4.0.1","eslint":"^4.18.1","eslint-config-dev":"^2.0.0","postcss-tape":"^2.2.0","pre-commit":"^1.2.2","rollup":"^0.56.3","rollup-plugin-babel":"^3.0.3"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["postcss","css","postcss-plugin","sass","scss","variables","conditionals","iterations","iterators","iterables","iterate","contents","eaches","elses","fors","ifs","includes","imports","medias","queries","query","mixins","defaults","functions","colors","customs","dirs","system-ui","image-set","logical","properties","blocks","inlines","starts","ends","any-link","font-variant","overflow-wrap","system-ui","caniuse"],"gitHead":"2c813534f7b0a496b9a4fbfa1a646db6b9a038d7","_id":"precss@3.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"integrity":"sha512-TAEKJjzNyKIwyDeJ3yuaTl1x0CoFw+VyycR3dO18Kl2rGU/rPNocCYH1cry1sstWwGKl3RpJhDfZ2ZdzscM0IQ==","shasum":"c82c0aa4ca5fe1e879799d697db0fac6d15d23bc","tarball":"http://registry-npm.ywwl.com/precss/download/precss-3.1.2.tgz","fileCount":6,"unpackedSize":18351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqymobfuaTWJIPnNO+h0AWmdMoQU/ZCH28+QnwhTWsJQIgcupSgI12mGrPAdGEsOJfzbw5hstE+NibHAYuJRIAW2I="}],"size":6437,"noattachment":false,"key":"/precss/-/precss-3.1.2.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/precss_3.1.2_1519783301969_0.008674895477396083"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"# PreCSS [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[PreCSS] lets you use Sass-like markup and staged CSS features in CSS.\n\n```scss\n$blue: #056ef0;\n$column: 200px;\n\n.menu {\n  width: calc(4 * $column);\n}\n\n.menu_link {\n  background: $blue;\n  width: $column;\n}\n\n/* becomes */\n\n.menu {\n  width: calc(4 * 200px);\n}\n\n.menu_link {\n  background: #056ef0;\n  width: 200px;\n}\n```\n\nPreCSS combines Sass-like syntactical sugar — like variables, conditionals, and\niterators — with emerging CSS features — like logical and custom properties,\nmedia query ranges, and image sets.\n\n## Usage\n\nAdd [PreCSS] to your build tool:\n\n```bash\nnpm install precss --save-dev\n```\n\n#### Node\n\nUse [PreCSS] to process your CSS:\n\n```js\nimport precss from 'precss';\n\nprecss.process(YOUR_CSS);\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nUse [PreCSS] as a plugin:\n\n```js\nimport postcss from 'postcss';\nimport precss from 'precss';\n\npostcss([\n  precss(/* options */)\n]).process(YOUR_CSS);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nUse [PreCSS] in your Gulpfile:\n\n```js\nimport postcss from 'gulp-postcss';\nimport precss from 'precss';\n\ngulp.task('css', function () {\n  return gulp.src('./src/*.css').pipe(\n    postcss([\n      precss(/* options */)\n    ])\n  ).pipe(\n    gulp.dest('.')\n  );\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nUse [PreCSS] in your Gruntfile:\n\n```js\nimport precss from 'precss';\n\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n  postcss: {\n    options: {\n      use: [\n        precss(/* options */)\n      ]\n    },\n    dist: {\n      src: '*.css'\n    }\n  }\n});\n```\n\n# Plugins\n\nPreCSS is powered by the following plugins (in this order):\n\n- [postcss-extend-rule](https://github.com/jonathantneal/postcss-extend-rule)\n- [postcss-advanced-variables](https://github.com/jonathantneal/postcss-advanced-variables)\n- [postcss-preset-env](https://github.com/jonathantneal/postcss-preset-env)\n- [postcss-atroot](https://github.com/OEvgeny/postcss-atroot)\n- [postcss-property-lookup](https://github.com/simonsmith/postcss-property-lookup)\n- [postcss-nested](https://github.com/postcss/postcss-nested)\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/precss/master.svg\n[cli-url]: https://travis-ci.org/jonathantneal/precss\n[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/precss.svg\n[npm-url]: https://www.npmjs.com/package/precss\n\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PreCSS]: https://github.com/jonathantneal/precss\n","publish_time":1519783302019,"_cnpm_publish_time":1519783302019,"dist-tags":{"latest":"4.0.0"}}