# stylis-rule-sheet

> stylis plugin to extract individual rules to use with insertRule API

Latest version **0.0.10** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylis-rule-sheet
pnpm add stylis-rule-sheet
yarn add stylis-rule-sheet
bun add stylis-rule-sheet
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2018-03-08 |
| First published | 2017-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1769 |
| Author | Sultan Tarimo |
| Maintainers | thysultan |
| Keywords | stylis, plugin |

## Links

- npm: https://www.npmjs.com/package/stylis-rule-sheet
- Repository: https://github.com/thysultan/stylis.js
- Issues: https://github.com/thysultan/stylis.js/issues
- npm.io page: https://npm.io/package/stylis-rule-sheet

## Recent versions

- 0.0.10 (latest) — 2018-03-08
- 0.0.9 — 2018-03-08
- 0.0.8 — 2018-02-15
- 0.0.7 — 2017-11-23
- 0.0.6 — 2017-10-14
- 0.0.5 — 2017-10-13
- 0.0.4 — 2017-10-11
- 0.0.3 — 2017-10-11
- 0.0.2 — 2017-10-10
- 0.0.1 — 2017-10-08

## README

# stylis rule-sheet

stylis plugin to extract individual rules to use with the insertRule API

```js
var sheet = document.head.appendChild(document.createElement('style')).sheet
var length = sheet.cssRules.length

var plugin = stylisRuleSheet((value) => {
	length = sheet.insertRule(value, length) + 1
})

stylis.use(plugin)
```

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