# ss-stylus

> Stylus (CSS) wrapper for SocketStream 0.3

Latest version **0.1.9** (published 2014-11-10) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2014-11-10 |
| First published | 2012-01-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Owen Barnes |
| Maintainers | socketstream, paulbjensen |

## Links

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

## Dependencies (2)

- [nib](https://npm.io/package/nib.md) 1.0.4
- [stylus](https://npm.io/package/stylus.md) 0.49.2

## Recent versions

- 0.1.9 (latest) — 2014-11-10
- 0.1.8 — 2013-12-17
- 0.1.7 — 2013-11-08
- 0.1.6 — 2013-02-11
- 0.1.5 — 2012-07-31
- 0.1.4 — 2012-06-25
- 0.1.3 — 2012-04-23
- 0.1.2 — 2012-02-01
- 0.1.1 — 2012-01-16
- 0.1.0 — 2012-01-14

## README

# Stylus (CSS) wrapper for SocketStream 0.3

Allows you to use [Stylus](http://learnboost.github.com/stylus) files (.styl) in your SocketStream project.


### Instructions

Add `ss-stylus` to your application's `package.json` file and then add this line to app.js:

    ss.client.formatters.add(require('ss-stylus'));

[Nib](http://visionmedia.github.com/nib) is included by default. To use this in your app add:

    @import 'nib'

at the top of your .styl file.


### JavaScript variable injection

The `ss-stylus` wrapper allows you use JavaScript variables within your Stylus code.

This can be useful if you need to serve assets from a CDN in production. For example:

```js
var ssStylus = require('ss-stylus');
var assetsPath = 'https://s3.amazonaws.com/example_assets_path/';

ssStylus.prependStylus('$assetsPath = \'' + assetsPath + '\'');
ss.client.formatters.add(ssStylus);
```

### Including CSS imports

To include CSS imports, pass these options to loading the ss-stylus library:

    ss.client.formatters.add(require('ss-stylus'), { 'include css' : true });

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