Giter Club home page Giter Club logo

json-extract-path's Introduction

Json Extract Path

CLI for extracting a value from a JSON file based on a JSONPath input

npx json-extract-path --file ./example.json --jsonpath "$.store.book[*].author"

How to use

Install globally via

npm install -g json-extract-path

or directly use via

npx json-extract-path

You can also download native binaries under the Releases Tab and use them if you don't want to install NodeJS.

Usage:

Usage: npx json-extract-path [options]

Options:
-V, --version          output the version number
-f, --file             path to the JSON file
-j, --jsonpath <path>  JsonPath value
-d, --delemitter <del>  delemitter character, in case more than one result is returned (default: ";")
-h, --help             display help for command

How to develop

  • yarn to install dependencies
  • yarn start to run the CLI script for debugging
  • yarn test to run tests
  • yarn publish to publish a new version to NPM. Make sure to bump the version!
  • yarn prettier:check to verify that your code is pretty
  • yarn prettier:write to make your code pretty

json-extract-path's People

Contributors

lukasbach avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.