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

@buzuli/json

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buzuli/json

Serialize JSON in color.

  • 2.0.0
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by24.78%
Maintainers
1
Weekly downloads
 
Created
Source

json

Serialize JSON in color.

Installation

npm install --save @buzuli/json

Usage

const json = require('@buzuli/json')
const jsonOptions = { indent: 4 }

console.log(json(require('./package.json'), jsonOptions))

Customization

color

You can disable color via the color option (enabled by default). Set to a falsey value to disable.

indent

You can configure indentation via the indent option. Accepts a boolean, number, or string.

To disable, set to false or a negative number.

To customize then indentation:

  • You can specify a number which is translated as the number of spaces to indent.
  • You can supply a string to replace the default indentation text (two space).

Keywords

FAQs

Package last updated on 08 Aug 2019

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