npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

jsoneditor-cli

v1.1.0

Published

[![npm version](https://badge.fury.io/js/jsoneditor-cli.svg)](http://badge.fury.io/js/jsoneditor-cli)

Downloads

16

Readme

JSONEditor-CLI

npm version

JSONEditor-CLI is a command-line tool for Node.js that provides an interactive JSON editing experience using JSONEditor. Whether you need to quickly view or edit JSON files, JSONEditor-CLI makes it simple and efficient.

Features

  • JSON Editing that runs on command line: Edit JSON files directly in a web-based interface without needing a text editor.
  • Multiple Modes: Supports different editing modes such as tree (default), text, or code.
  • Web Interface Option: Launch a local web interface to edit JSON files in your browser.
  • Lightweight & Fast: Built with Node.js for a quick and responsive experience.

Installation

Install JSONEditor-CLI globally using npm:

npm install -g jsoneditor-cli

Or add it as a dependency to your project:

npm install jsoneditor-cli --save-dev

Usage

To use JSONEditor-CLI, run the command followed by the JSON file you wish to edit:

jsoneditor-cli [options] <file>

Options

  • -m, --mode <mode>
    Set the editor mode. Available modes: tree (default), text, or code.

  • -p, --port <number>
    Specify the port for the web interface (default: 5053).

  • -e, --engine <engine>
    Set the engine. Available engines: jsoneditor (default), svelte-jsoneditor.

  • -i, --initialExpand <initialExpand>
    Set the initial expand. Available options: true (default), false.

  • -h, --help
    Display help and usage information.

Examples

Edit a JSON file in tree mode (default):

jsoneditor-cli load data.json

Specify a mode (e.g., code mode):

jsoneditor-cli --mode code load data.json

Launch the web interface on a specific port:

jsoneditor-cli --port 4000 load data.json

Any options provided via the command line will override the configuration file settings.

Contributing

Contributions are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.