# get-inline-styles

> Get inlined CSS from an HTML string.

Latest version **1.0.0** (published 2015-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-inline-styles
pnpm add get-inline-styles
yarn add get-inline-styles
bun add get-inline-styles
```

## 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 | 1.0.0 |
| Published | 2015-10-19 |
| First published | 2015-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | John Otander |
| Maintainers | johno |
| Keywords | css, inline, styles |

## Links

- npm: https://www.npmjs.com/package/get-inline-styles
- Repository: https://github.com/johnotander/get-inline-styles
- Issues: https://github.com/johnotander/get-inline-styles/issues
- npm.io page: https://npm.io/package/get-inline-styles

## Dependencies (2)

- [cheerio](https://npm.io/package/cheerio.md) ^0.19.0
- [is-present](https://npm.io/package/is-present.md) 1.0.0

## 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

- 1.0.0 (latest) — 2015-10-19
- 0.0.1 — 2015-07-28

## README

# get-inline-styles [![Build Status](https://secure.travis-ci.org/johnotander/get-inline-styles.png?branch=master)](https://travis-ci.org/johnotander/get-inline-styles) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

Get inlined CSS from an HTML string.

## Installation

```bash
npm install --save get-inline-styles
```

## Usage

```javascript
var getInlineStyles = require('get-inline-styles')

getInlineStyles('<h2 style="color: blue;">Hello, world!</h2>')
// => [{ tag: 'h2', style: 'color: blue;' }]
```

## License

MIT

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).

***

> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).

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