cli-json-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.55 • Public • Published

Welcome to cli-json-parser 👋

Version Documentation Maintenance License: MIT

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 to PATH.

Usage after installation

cli-json-parser "Hey!"

Screenshot

example.png

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

🤝 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.

Package Sidebar

Install

npm i cli-json-parser

Weekly Downloads

0

Version

1.0.55

License

MIT

Unpacked Size

9.52 kB

Total Files

7

Last publish

Collaborators

  • npm