Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoprefixer-stylus

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer-stylus

autoprefixer for stylus

  • 0.14.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-35.98%
Maintainers
1
Weekly downloads
 
Created
Source

Autoprefixer Stylus

An autoprefixer plugin for stylus.

npm tests coverage dependencies

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:

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:

stylus(css)
  .use(autoprefixer({ browsers: ['ie 7', 'ie 8'] }));

By default, this plugin will display any warnings. You can disable this with the hideWarnings option. Example below:

stylus(css)
  .use(autoprefixer({hideWarnings: true});

If you'd like to install globally and run from the command line, you can do it like this:

npm install -g autoprefixer-stylus
stylus -u autoprefixer-stylus -c example.styl

FAQs

Package last updated on 16 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc