cli-json-parser v1.0.55
npm package template
Programmatic usage:
Installation
npm install --save cli-json-parser
Usage
import cliJsonParser from "cli-json-parser";
console.log(cliJsonParser("Hello, world!")[0]);
Command line usage:
Using without installation
npx cli-json-parser "Goodbye, world!"
Note: Use this method only if you plan to use cli-json-parser for one time, installing cli-json-parser globally (see-below) is recommended for multiple time usages.
Installation
npm install cli-json-parser -g
Note for Linux & MacOS users: DO NOT use sudo to install global packages! The correct way is to tell npm where to install its global packages:
npm config set prefix ~/.local
. Make sure~/.local/bin
is added toPATH
.
Usage after installation
cli-json-parser "Hey!"
Screenshot
API
For CLI usage, see the help option:
npx cli-json-parser --help
For programmatic usage, use the default exported module. It takes any number of arguments and returns them all in the form of an array.
Author
š¤ Rahil Kabani
- Website: https://alias-rahil.github.io
- Github: @alias-rahil
- Email: rahil.kabani.4@gmail.com
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a āļø if this project helped you!
cli-json-parser
š License
Copyright Ā© 2021 Rahil Kabani. This project is MIT licensed.
3 years ago