node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


A handler for the webant module for stylus requires.


Require stylus files with webant

$ npm install webant-handler-stylus

Ensure the stylus handler is present in your webant configuration file. For example:


You may now require stylus files:

// Get the compiled CSS. 
var css = require("../path/to/styles.stylus");
// Apply the CSS to the document. 
document.head.innerHTML += '<style type="text/css">' + css + '</style>';

See the webant module for more information.


Can be either true or false (default). Controls whether the compiled CSS is compressed.


Ensure phantomjs is installed and in your PATH, then run:

$ npm test