Socket
Socket
Sign inDemoInstall

cli-json-parser

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cli-json-parser

cli json parser


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
151 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 11 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc