# xcss-object-model

> Object model for xCSS

Latest version **0.5.1** (published 2014-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install xcss-object-model
pnpm add xcss-object-model
yarn add xcss-object-model
bun add xcss-object-model
```

## 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.5.1 |
| Published | 2014-02-13 |
| First published | 2014-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrey Popp |
| Maintainers | andreypopp |
| Keywords | xcss |

## Links

- npm: https://www.npmjs.com/package/xcss-object-model
- Repository: https://github.com/andreypopp/xcss-object-model
- Issues: https://github.com/andreypopp/xcss-object-model/issues
- npm.io page: https://npm.io/package/xcss-object-model

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ~2.4.1
- [flatmap](https://npm.io/package/flatmap.md) 0.0.3
- [deep-freeze](https://npm.io/package/deep-freeze.md) 0.0.1
- [css-stringify](https://npm.io/package/css-stringify.md) ~1.4.1
- [es6-collections](https://npm.io/package/es6-collections.md) ~0.2.0

## Recent versions

- 0.5.1 (latest) — 2014-02-13
- 0.5.0 — 2014-02-13
- 0.4.0 — 2014-02-13
- 0.3.1 — 2014-02-11
- 0.3.0 — 2014-02-11
- 0.2.0 — 2014-02-11
- 0.1.0 — 2014-02-11

## README

# xcss-object-model

An immutable object model for CSS. A part of [xCSS][].

## Installation

Install via npm:

    % npm install xcss-object-model

## Usage

Compose a stylesheet and call `.toCSS()` method to get CSS:

    var xcss = require('xcss-object-model');

    var stylesheet = xcss.stylesheet;
    var rule = xcss.rule;

    var style = stylesheet(null,
      rule('body', {
        backgroundColor: 'red'
      }),

      rule('div', {
        width: '12px'
      })
    )

    var css = style.toCSS();

[xCSS]: https://github.com/andreypopp/xcss

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