# @vueneue/critters

> VueNeue critical CSS

Latest version **0.1.1** (published 2018-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vueneue/critters
pnpm add @vueneue/critters
yarn add @vueneue/critters
bun add @vueneue/critters
```

## 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.1 |
| Published | 2018-08-24 |
| First published | 2018-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 25.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Simon Babay |
| Maintainers | chymz |

## Links

- npm: https://www.npmjs.com/package/@vueneue/critters
- npm.io page: https://npm.io/package/@vueneue/critters

## Dependencies (3)

- [css](https://npm.io/package/css.md) ^2.2.3
- [parse5](https://npm.io/package/parse5.md) ~4.0.0
- [nwmatcher](https://npm.io/package/nwmatcher.md) ^1.4.4

## Recent versions

- 0.1.1 (latest) — 2018-08-24
- 0.1.0 — 2018-08-24

## README

# VueNeue - Critters

> A transformed version of [Google Critters](https://github.com/GoogleChromeLabs/critters) but without webpack requirement

## Usage

Base files:

- [HTML file](sample/index.html)
- [CSS file](sample/styles.css)

**Code**

```js
const fs = require("fs");
const Critters = require("./src");

// Read HTML file
const html = fs.readFileSync("index.html");

// Store stylesheets contents in object
const cssFiles = {
  "/styles.css": fs.readFileSync("styles.css")
};

// Process
const critical = new Critters();

critical.process(html, cssFiles).then(html => {
  // html = optimized with critical CSS
});
```

## License

**MIT** - See `LICENSE` file

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