1.0.3 • Published 7 years ago

chouchenn v1.0.3

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Chouchenn - Lightweight library of mixins for Stylus

Lightweight mixin library to help you get the best of Stylus.

Installation

$ npm install chouchenn

JavaScript API

Below is an example of how to utilize Chouchenn and Stylus with the connect framework (or Express).

var connect = require('connect')
  , stylus = require('stylus')
  , chouchenn = require('chouchenn');

var server = connect();

function compile(str, path) {
  return stylus(str)
  .set('filename', path)
  .set('compress', true)
  .use(chouchenn());
}

server.use(stylus.middleware({
  src: __dirname
  , compile: compile
}));

Stylus API

To gain access to everything Chouchenn has to offer, simply add:

@import 'chouchenn'

More Information

Checkout the documentation here: http://chouchenn.switch.paris

Testing

You will first need to install the dependencies:

  $ npm install -d

Run the automated test cases:

  $ npm test

Contributors

Made with care by the Switch Team, composed of: