# styla

> Stylus Utilities & Mixins Library

Latest version **2.0.9** (published 2021-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install styla
pnpm add styla
yarn add styla
bun add styla
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.9 |
| Published | 2021-11-01 |
| First published | 2017-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | teniryte |
| Maintainers | teniryte |

## Links

- npm: https://www.npmjs.com/package/styla
- Repository: https://github.com/teniryte/styla
- Issues: https://github.com/teniryte/styla/issues
- npm.io page: https://npm.io/package/styla

## Dependencies (3)

- [ooi](https://npm.io/package/ooi.md) ^0.1.60
- [stylus](https://npm.io/package/stylus.md) ^0.54.8
- [stylus-supremacy](https://npm.io/package/stylus-supremacy.md) ^2.15.0

## Recent versions

- 2.0.9 (latest) — 2021-11-01
- 2.0.8 — 2021-05-16
- 2.0.7 — 2021-05-16
- 2.0.6 — 2021-05-15
- 2.0.5 — 2021-05-15
- 2.0.4 — 2021-05-15
- 2.0.3 — 2021-05-15
- 2.0.0 — 2021-01-15
- 1.0.21 — 2021-01-11
- 1.0.20 — 2021-01-11
- 1.0.19 — 2021-01-11
- 1.0.12 — 2019-04-01
- 1.0.11 — 2017-11-18
- 1.0.10 — 2017-11-17
- 0.0.4 — 2017-05-27
- … 3 more at https://npm.io/package/styla/versions

## README

# styla

Stylus Utilities & Mixins Library

```js
const styla = require('styla');

// Render file
styla.renderFile('./styles.styl', {
  // Minify result code
  compress: true,
  // Set render properties
  set: {
    filename: './styles.styl',
  },
  // Define context globals
  define: {
    version: '0.0.1',
  },
  // Include files
  include: ['./lib/styles.styl'],
  // Import files
  imports: ['./lib/styles.styl'],
});

// Compile file, returns stylus build object
var build = styla.compileFile('./styles.styl', {
  // Same options as styla.renderFile(filename, options) above
});
```

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