koa-stylish

0.1.1 • Public • Published

koa-stylish

Stylus middleware for Koa. It is koa wrapper for node-stylish.

Installation

$ npm install koa-stylish

Examples

Simple stylus.middleware() replacement:

app.use(stylish(__dirname + '/public'))

Extended example with autoprefixer:

var stylus = require('koa-stylish');
var autoprefixer = require('autoprefixer-stylus');

app.use(stylus({
  src: __dirname + '/public',
  setup: function(renderer) {
    return renderer.use(autoprefixer());
  },
}));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i koa-stylish

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • lusever