# json-property

> Quickly manipulate JSON files

Latest version **0.1.1** (published 2018-03-31) · MIT license · 0 weekly downloads

## Install

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

Provides the commands `json-property`, `get-json-property`, `set-json-property`.

## 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.1.1 |
| Published | 2018-03-31 |
| First published | 2017-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hoàng Văn Khải |
| Maintainers | khai96_ |
| Keywords | json, property, properties, json-cli |

## Links

- npm: https://www.npmjs.com/package/json-property
- Repository: https://github.com/ksxnodeapps/json-property
- Homepage: https://github.com/ksxnodeapps/json-property#readme
- Issues: https://github.com/ksxnodeapps/json-property/issues
- npm.io page: https://npm.io/package/json-property

## Dependencies (2)

- [just-try](https://npm.io/package/just-try.md) ^2.0.1
- [get-stdin](https://npm.io/package/get-stdin.md) ^5.0.1

## 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

- 0.1.1 (latest) — 2018-03-31
- 0.1.0 — 2017-04-11
- 0.0.6 — 2017-04-08
- 0.0.5 — 2017-04-08
- 0.0.4 — 2017-04-08
- 0.0.3 — 2017-04-08
- 0.0.2 — 2017-04-08
- 0.0.1 — 2017-04-08

## README

# json-property
Quickly manipulate JSON files

## Installation

```bash
npm install --global json-property
```

## Command-line usage

### Print JSON content

```bash
get-json-property file.json property_name_1 property_name_2 property_name_3
```

```bash
get-json-property property_name_1 property_name_2 property_name_3 < file.json
```

```bash
cat file.json | get-json-property property_name_1 property_name_2 property_name_3
```

### Modify JSON content

```bash
set-json-property value file.json property_name_1 property_name_2 property_name_3
```

```bash
set-json-property value property_name_1 property_name_2 property_name_3 < input.json > output.json
```

```bash
cat input.json | set-json-property value property_name_1 property_name_2 property_name_3 > output.json
```

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