# cssom-chengwei

> CSS Object Model implementation and CSS parser (fork that hacks in support for multiple occurrences of the same CSS property in a rule)

Latest version **0.2.6** (published 2013-10-30) · 0 weekly downloads

## Install

```sh
npm install cssom-chengwei
pnpm add cssom-chengwei
yarn add cssom-chengwei
bun add cssom-chengwei
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2013-10-30 |
| First published | 2013-10-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.2.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chengwei Wu |
| Maintainers | wuchengwei |
| Keywords | CSS, CSSOM, parser, styleSheet |

## Links

- npm: https://www.npmjs.com/package/cssom-chengwei
- Repository: https://github.com/wuchengwei/CSSOM
- npm.io page: https://npm.io/package/cssom-chengwei

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.2.6 (latest) — 2013-10-30

## README

# CSSOM

CSSOM.js is a CSS parser written in pure JavaScript. It also a partial implementation of [CSS Object Model](http://dev.w3.org/csswg/cssom/). 

    CSSOM.parse("body {color: black}")
    -> {
      cssRules: [
        {
          selectorText: "body",
          style: {
            0: "color",
            color: "black",
            length: 1
          }
        }
      ]
    }


## [Parser demo](http://nv.github.com/CSSOM/docs/parse.html)

Works well in Google Chrome 6+, Safari 5+, Firefox 3.6+, Opera 10.63+.
Doesn't work in IE < 9 because of unsupported getters/setters.

To use CSSOM.js in the browser you might want to build a one-file version with [Jake](http://github.com/mde/jake):

    ➤ jake
    build/CSSOM.js is done

To use it with Node.js:

    npm install cssom

## [Specs](http://nv.github.com/CSSOM/spec/)

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