Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pretty-immutable

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-immutable

Pretty printing for ImmutableJS

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
376
decreased by-16.63%
Maintainers
1
Weekly downloads
 
Created
Source

pretty-immutable

Pretty printing for ImmutableJS

Heavily inspired by (and dependent on) json-stringify-pretty-compact.

npm version Build Status MIT Licensed

Install

npm install pretty-immutable

This library will only work (or really make any sense) if you also have immutable installed.

Usage

var Immutable = require("immutable");
var prettyI = require("pretty-immutable");

var bigMap = Immutable.fromJS({
  a: [1, 2, 3, 4],
  b: {
    blah: {
      blah: [
        {a: 1},
        {b: 2},
        {c: 3}
      ]
    }
  }
});

// Use as a formatter
console.log(prettyI(bigMap));

// Override the built-in inspect() method
prettyI.install(Immutable);

License

Copyright 2016 Glen Mailer.

MIT Licensed.

Keywords

FAQs

Package last updated on 15 Jun 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