node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

querify

querify

The query interpreter used in pubsub.io. It's available through npm:

npm install querify

Using querify is easy

var querify = require('querify');
 
var query = querify.compile({a:1});
 
console.log(query({a:1})) // true 
console.log(query({a:2})) // false 

More examples to come!