# cssauron-json

> css sauron config for json

Latest version **1.0.0** (published 2013-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install cssauron-json
pnpm add cssauron-json
yarn add cssauron-json
bun add cssauron-json
```

## 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 | 2013-10-24 |
| First published | 2013-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | cssauron, json |

## Links

- npm: https://www.npmjs.com/package/cssauron-json
- Repository: https://github.com/chrisdickinson/cssauron-json
- Issues: https://github.com/chrisdickinson/cssauron-json/issues
- npm.io page: https://npm.io/package/cssauron-json

## Dependencies (1)

- [cssauron](https://npm.io/package/cssauron.md) ~1.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-10-24
- 0.0.3 — 2013-10-24
- 0.0.2 — 2013-03-07

## README

# cssauron-json

[CSSauron](http://npm.im/cssauron) preconfigured for JSON nodes 
emitted from [json-parse-stream](http://npm.im/json-parse-stream).

```javascript

var css = require('cssauron-json')
  , json = require('json-parse-stream')()

var sel = css('.key > .val')

json.write('{"key": {"val": 3, "key": 2}}')
    .on('data', function(node) {
      if(sel(node)) {
        console.log(node)  // emits for top level key only
      }
    })

```

## api

`.class` maps to the `key` attribute of a node.
`tag` queries may be `object`, `array`, `string`, `number`, `null`, `boolean`.
`>` operators are allowed, but `~` and `+` are not.

# License

MIT

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