Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosssi/koa-stylus
Stylus middleware for Koa
https://github.com/yosssi/koa-stylus
Last synced: 25 days ago
JSON representation
Stylus middleware for Koa
- Host: GitHub
- URL: https://github.com/yosssi/koa-stylus
- Owner: yosssi
- License: mit
- Created: 2013-12-23T13:18:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T02:08:26.000Z (over 7 years ago)
- Last Synced: 2024-11-14T10:07:12.272Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 12
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-koa - koa-stylus - Stylus中间件。 ![](https://img.shields.io/github/stars/yosssi/koa-stylus.svg?style=social&label=Star) ![](https://img.shields.io/npm/dm/koa-stylus.svg?style=flat-square) (仓库 / 中间件)
README
# koa-stylus
Stylus middleware for Koa
## Installation
```js
$ npm install koa-stylus
```## Options
See [the Stylus middleware document](https://learnboost.github.io/stylus/docs/middleware.html).
## Example
```js
var stylus = require('koa-stylus');
var serve = require('koa-static');
var koa = require('koa');
var app = koa();app.use(stylus('./public'));
app.use(serve('./public'));
app.listen(3000);
```## License
MIT