Code Monkey home page Code Monkey logo

chouchenn's Introduction

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:

chouchenn's People

Contributors

dpetton avatar enwin avatar

Stargazers

Rico Moorman avatar sdussaut avatar  avatar

Watchers

sdussaut avatar James Cloos avatar Harold Malaud avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.