UNPKG

pourover

Version:

A library for simple, fast filtering and sorting of large collections in the browser

43 lines (30 loc) 1.47 kB
Autoprefixer Stylus ------------------- An [autoprefixer](https://github.com/ai/autoprefixer) plugin for stylus. [![npm](http://img.shields.io/npm/v/autoprefixer-stylus.svg?style=flat)](http://badge.fury.io/js/autoprefixer-stylus) [![tests](http://img.shields.io/travis/jenius/autoprefixer-stylus/master.svg?style=flat)](https://travis-ci.org/jenius/autoprefixer-stylus) [![coverage](http://img.shields.io/coveralls/jenius/autoprefixer-stylus/master.svg?style=flat)](https://coveralls.io/r/jenius/autoprefixer-stylus) [![dependencies](http://img.shields.io/gemnasium/jenius/autoprefixer-stylus.svg?style=flat)](https://gemnasium.com/jenius/autoprefixer-stylus) ### Installation You can install through npm as such: `npm install autoprefixer-stylus` ### Usage You can include autoprefixer-stylus as a normal stylus plugin. Basic example below: ```js var stylus = require('stylus'); var autoprefixer = require('autoprefixer-stylus'); stylus(css) .use(autoprefixer()) .render(function(err, output){ console.log(output); }); ``` This plugin also takes any of the [options that autoprefixer normally takes](), which at the time of writing is `browsers` and `cascade`. Example with `browsers` below: ```js stylus(css) .use(autoprefixer({ browsers: ['ie 7', 'ie 8'] })); ``` If you'd like to install globally and run from the command line, you can do it like this: ```js npm install -g autoprefixer-stylus stylus -u autoprefixer-stylus -c example.styl ```