read-json-value

1.0.2 • Public • Published

NPM

READ JSON VALUE

This is a simple Node.js module to read a JSON value from a file. I created this module because I needed to read a JSON value from a file from the CLI. I couldn't find a module that did this, so I created one. This module has no dependencies, and is very small.

Installation

npm i -g read-json-value

Usage

read-json-value <file> <jsonpath>

Arguments

file

The path to the JSON file.

jsonpath

The JSON path to the value you want to read. This could be a simple key, or a path to a nested value (e.g. scripts.test or dependencies.react in a package.json file)

Example

read-json-value package.json version

Readme

Keywords

Package Sidebar

Install

npm i read-json-value

Weekly Downloads

50

Version

1.0.2

License

MIT

Unpacked Size

6.24 kB

Total Files

9

Last publish

Collaborators

  • zitronenbonbon_x