# k-stylus

> Derby plugin to add Stylus support

Latest version **0.1.2** (published 2018-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install k-stylus
pnpm add k-stylus
yarn add k-stylus
bun add k-stylus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-07-19 |
| First published | 2014-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Artur Zayats |
| Maintainers | ile |
| Keywords | derby, derbyjs, stylus, plugin |

## Links

- npm: https://www.npmjs.com/package/k-stylus
- Repository: https://github.com/kantele/k-stylus
- Issues: https://github.com/kantele/k-stylus/issues
- npm.io page: https://npm.io/package/k-stylus

## Dependencies (1)

- [stylus](https://npm.io/package/stylus.md) *

## Recent versions

- 0.1.2 (latest) — 2018-07-19
- 0.1.1 — 2014-11-19
- 0.1.0 — 2014-11-19

## README

# Derby plugin to add Stylus support

## Usage

Right after creating your Derby app, add:

```js
// Add Stylus support
app.serverUse(module, 'derby-stylus');
```

Make sure this is before any calls to `app.loadStyles()`.

After that you can use `*.styl` files instead of `*.css`


## Example

index.js
```js
var derby = require('derby');
var app = module.exports = derby.createApp('example', __filename);

// Add Stylus support (before loadStyles)
app.serverUse(module, 'derby-stylus');

app.loadViews (__dirname);
app.loadStyles(__dirname);

app.get('/', function(page, model) {
  page.render();
});
```

index.html
```html
<Body:>
  <h1>Hello world</h1>
```

index.styl
```stylus
body
  padding 0
  margin 0
```

---
_Source: https://npm.io/package/k-stylus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
