node package manager

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