# stiletto

> stylesheet inliner

Latest version **0.6.0** (published 2022-02-06) · MIT license · 0 weekly downloads

## Install

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

## 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.6.0 |
| Published | 2022-02-06 |
| First published | 2022-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TANIGUCHI Masaya |
| Maintainers | taniguchi |
| Keywords | css, stylesheet, inline, inliner |

## Links

- npm: https://www.npmjs.com/package/stiletto
- Repository: https://github.com/tani/stiletto
- Homepage: https://github.com/tani/stiletto#readme
- Issues: https://github.com/tani/stiletto/issues
- npm.io page: https://npm.io/package/stiletto

## Dependencies (4)

- [css](https://npm.io/package/css.md) ^3.0.0
- [css-select](https://npm.io/package/css-select.md) ^4.2.1
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^7.2.0
- [dom-serializer](https://npm.io/package/dom-serializer.md) ^1.3.2

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.6.0 (latest) — 2022-02-06
- 0.5.2 — 2022-02-06
- 0.5.1 — 2022-02-06
- 0.5.0 — 2022-02-06
- 0.4.0 — 2022-02-06
- 0.3.1 — 2022-02-06
- 0.3.0 — 2022-02-06
- 0.2.0 — 2022-02-06
- 0.1.2 — 2022-02-06
- 0.1.1 — 2022-02-06
- 0.1.0 — 2022-02-06

## README

# Stiletto

Given HTML, stiletto will inline your CSS properties into the style attribute.

## Installation

```
$ npm i stiletto

```

## Usage

```javascript
import * as stiletto from "stiletto"
const html = "<p> ... </p>"
const css = "p { color: red }"
console.log(stiletto.inline(html, css))
// <p style="color:red;">...</p>
```

## Copyright and License

Copyright (c) 2022 TANIGUCHI Masaya. All rights reserved.
This package is released under MIT License. https://git.io/mit-license

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