mongo-eql (v1.0.0) implements MongoDB-style equality comparison for JavaScript data structures. It evaluates values using the same semantics as MongoDB's $eq operator, treating null and undefined as equal and performing deep equality on objects. The package is minimal, with no dependencies, and targets Node.js or browser environments. It is stable but no longer actively maintained (last release 2015), and offers a focused alternative to lodash.isEqual or deep-equal for MongoDB-like behavior.
npm install mongo-eqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates MongoDB equality semantics including null/undefined equality and deep object comparison.
Use === if strict equality is needed.
Avoid usage with circular data structures.
Use eql only for plain objects/arrays; for class instances consider custom comparison.
Use const eql = require('mongo-eql')Use import eql from 'mongo-eql'
No dependency data recorded yet.