Socket
Socket
Sign inDemoInstall

neatequal

Package Overview
Dependencies
6
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    neatequal

Neat deep equal.


Version published
Weekly downloads
140K
decreased by-6.96%
Maintainers
1
Install size
310 kB
Created
Weekly downloads
 

Readme

Source

neatequal

neatequal is a neater deepEqual.

NPM version Build status Dependency Status devDependency Status Coverage Status Code Climate

neatEqual capture

Installation

First install neatequal in you project:

npm install --save neatequal

Getting started

Then, use it:

var neatequal = require('neatequal');

var expectedFruits = [{
  name: 'orange'
  count: 2,
  colors: ['orange']
}, {
	name: 'banana',
  count: 0,
  colors: ['yellow', 'white']
}, {
	name: 'kiwi',
  count: 8,
  colors: ['brown', 'green']
}];

var currentFruits = [{
  name: 'orange'
  count: 2,
  colors: ['yellow', 'orange']
}, {
	name: 'banana',
  count: 1,
  colors: ['white']
}];

neatequal(expectedFruits, currentFruits);

## API

### neatequal(current:Object, expected:Object) Throws an exception if current and expected objects doens'nt equal.

Contribute

Feel free to submit us your improvements. To do so, you must accept to publish your code under the MIT license.

To start contributing, first run the following to setup the development environment:

git clone git@github.com:nfroidure/neatequal.git
cd neatequal
npm install

Then, run the tests:

npm test

Stats

NPM NPM

Keywords

FAQs

Last updated on 07 Feb 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc