chouchenn

1.0.3 • Public • Published

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:

Package Sidebar

Install

npm i chouchenn

Weekly Downloads

3

Version

1.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • sdussaut