🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

deep-eq

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-eq

deepEqual assertion with pretty diff

1.3.3
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

deep-eq

npm version build status coverage status

Why?

  • assert.deepEqual doesn't display well the diff between 2 objects
  • simple: no transpiling needed
const eq = require('deep-eq');

eq({foo: {ok: 1}}, {foo: {ok: 2, u: 0}});

outputs: (colors not shown, key and values (left/right) have different colors)

AssertionError:
foo.ok 1	foo.ok 2
        	foo.u 0
    at ....stacktrace...

Keywords

assert

FAQs

Package last updated on 10 Dec 2017

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