# cssobj-plugin-post-csstext

> https://github.com/cssobj/cssobj-plugin-post-csstext

Latest version **1.0.7** (published 2016-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install cssobj-plugin-post-csstext
pnpm add cssobj-plugin-post-csstext
yarn add cssobj-plugin-post-csstext
bun add cssobj-plugin-post-csstext
```

## 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.7 |
| Published | 2016-08-08 |
| First published | 2016-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | James Yang |
| Maintainers | cssobj |
| Keywords | cssobj, cssobj plugin, css text |

## Links

- npm: https://www.npmjs.com/package/cssobj-plugin-post-csstext
- Repository: https://github.com/cssobj/cssobj-plugin-post-csstext
- Homepage: https://github.com/cssobj/cssobj-plugin-post-csstext#readme
- Issues: https://github.com/cssobj/cssobj-plugin-post-csstext/issues
- npm.io page: https://npm.io/package/cssobj-plugin-post-csstext

## Recent versions

- 1.0.7 (latest) — 2016-08-08
- 1.0.6 — 2016-08-03
- 1.0.5 — 2016-08-03
- 1.0.4 — 2016-08-03
- 1.0.3 — 2016-08-01
- 1.0.2 — 2016-08-01
- 1.0.1 — 2016-08-01

## README

# cssobj-plugin-post-csstext

Get cssText from CSSOM.

## Install

``` javascript
npm install cssobj/cssobj-plugin-post-csstext
```

## Usage:

### Option 1: as a plugin

It **must** load after [plugin-cssom](https://github.com/cssobj/cssobj-plugin-post-cssom).

``` javascript
var pluginCssText = require('cssobj-plugin-post-csstext')

var result = cssobj(obj)

result.options.plugins.post.push(pluginCssText(callback))

function callback(css) {
  // for every time result.update
  // css === the whole cssom text of result
}
```

### Option 2: as callback for onUpdate

``` javascript
var result = cssobj(obj, {onUpdate: pluginCssText(callback)})
```

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