Nonchalantly Performs Magic
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

stylus-assert

0.1.0 • Public • Published

Build Status

stylus-assert

Assertions directly in Stylus, using node's own module.

Installation

$ npm install stylus-assert

Javascript API

Obligatory connect/express example.

var connect = require('connect');
var stylus = require('stylus');
var stylusAssert = require('stylus-assert');
 
var server = connect();
 
function compile(str, path) {
  return stylus(str)
    .set('filename', path)
    .set('compress', true)
    .use(stylusAssert);
}
 
server.use(stylus.middleware({
    src: __dirname
  , compile: compile
}));

Keywords

none

install

npm i stylus-assert

Downloadsweekly downloads

3

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar