# epistyle

> Enhanced inline style objects

Latest version **1.1.0** (published 2017-05-08) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2017-05-08 |
| First published | 2016-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ryan Tsao |
| Maintainers | rtsao |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2017-05-08
- 1.0.1 — 2016-12-22
- 1.0.0 — 2016-04-23
- 0.4.1 — 2016-04-15
- 0.4.0 — 2016-04-15
- 0.3.0 — 2016-04-08
- 0.2.0 — 2016-04-07
- 0.1.0 — 2016-04-06

## README

# epistyle

[![build status][build-badge]][build-href]
[![dependencies status][deps-badge]][deps-href]
[![npm version][npm-badge]][npm-href]

Enhanced inline style objects

Adds support for media queries, psuedo classes, and fallback values via generation of scoped CSS.

## Usage

```js
const epistyle = require('epistyle/passthrough');

const {passthrough, css, className} = epistyle({
  color: 'red',
  ':hover': {
    color: ['rgba(0,75,255,0.8)', 'blue']
  }
});

console.log(passthrough);
// => {color: "red"}

console.log(css);
// => "._style_2wKC1:hover {\n  color: blue !important;\n  color: rgba(0,75,255,0.8) !important\n}"

console.log(className);
// => "_style_2wKC1"
```

[build-badge]: https://travis-ci.org/rtsao/epistyle.svg?branch=master
[build-href]: https://travis-ci.org/rtsao/epistyle
[deps-badge]: https://david-dm.org/rtsao/epistyle.svg
[deps-href]: https://david-dm.org/rtsao/epistyle
[npm-badge]: https://badge.fury.io/js/epistyle.svg
[npm-href]: https://www.npmjs.com/package/epistyle

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