node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

compr

Compr

Utilities to compare Javascript data

Install

npm install compr

Example

var compr = require('compr');
 
var d1=new Date();
var d2=new Date();
 
console.log(compr.compare(d1,d2));
//false 
 
console.log(compr.like(d1,d2));
//true