New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hed

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hed

An edit tool for JSON configs. Comments are preserved outside of JSON.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hed

hed allows you to use comments and avoid missing/trailing comma mistakes, even with configs like npm's package.json where comments are forbidden.

How does it work?

  • hed FILE.json will convert JSON to Hjson and open it in your editor for editing
  • when you are done FILE.json is updated with your changes (as pure JSON)
  • any comments you added will be kept in FILE.meta
  • FILE.hjson is removed to avoid conflicting edits
  • the next time you run hed FILE.json your comments will be merged back

Usage

hed, an edit tool for JSON configs. Comments are preserved outside of JSON.

Usage:
  hed [OPTIONS] FILE
  hed (-h | --help | -?)
  hed (-V | --version)
  hed --config [EDITOR]

hed allows you to use comments and avoid missing/trailing comma mistakes, even with configs like npm's package.json where comments are forbidden.
For details see https://github.com/laktak/hed

Options:
  -e        edit JSON with comments (default).
  -s        show JSON with comments.
  --config  edit the hed config.

For example:

hed package.json

To view the file with comments:

hed package.json -s

Install from npm

npm install hed -g

Set your editor

Run hed --config or hed --config EDITOR.

{
  # For example to use sublime:
  editor: subl -w
}

Keywords

FAQs

Package last updated on 14 Oct 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc