{"repo":"postcss/postcss-cli","free":true,"listed":false,"github":"https://github.com/postcss/postcss-cli","clone":"git clone https://github.com/postcss/postcss-cli.git","description":"CLI for postcss","language":"JavaScript","stars":856,"topics":["cli","postcss","postcss-runner"],"license":null,"category":"cli-tools","readme_excerpt":"[![npm][npm]][npm-url] [![node][node]][node-url] [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![chat][chat]][chat-url] PostCSS CLI PostCSS CLI is a command line interface for PostCSS Install Usage ℹ️ More details on custom parsers, stringifiers and syntaxes, can be found here. Config If you need to pass options to your plugins, or have a long plugin chain, you'll want to use a configuration file. postcss.config.js Note that you can not set the from or to options for postcss in the config file. They are set automatically based on the CLI arguments. Context For more advanced usage, it's recommended to use a function in postcss.config.js ; this gives you access to the CLI context to dynamically apply options and plugins per file Name Type Default Description :-------: :--------: :--------------------------------: :------------------- env {String} 'development' process.env.NODE ENV file {Object} dirname, basename, extname File options {Object} map, parser, syntax, stringifier PostCSS Options postcss.config.js ⚠️ If you want to set options via CLI, it's mandatory to reference ctx.options in postcss.config.js postcss.config.js [npm]: https://img.shields.io/npm/v/postcss-cli.svg [npm-url]: https://npmjs.com/package/postcss-cli [node]: https://img.shields.io/node/v/postcss-cli.svg [node-url]: https://nodejs.org/ [tests]: https://img.shields.io/github/workflow/status/postcss/postcss-cli/Node.js%20CI/master [tests-url]: https://github.com/postcss/postcss-cli/actions?query","default_branch":null,"files":null,"tree":[],"storefront":"/r/postcss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/postcss/postcss-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}