
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Lucene-inspired string-based mongodb query language for humans (and ferrets). And implemention in Mongoose
$ npm install humanquery
var mongoose = require('mongoose');
require('humanquery')( mongoose );
Query
model.findOne().query('level:error OR type:upload', function(err, doc){
// More Code..
});
model.query('level:error OR type:upload').count(function(err, doc){
// More Code..
});
Specify field names with optional values:
level:error
yields
{ level: 'error' }
Omit value to imply true:
failed
yields
{ failed: true }
Or specify a boolean-ish value (true, false, yes, no):
failed: no
yields
{ failed: false }
Currently supports AND / OR, which may be nested:
(level:error AND type:"upload failed") OR user.name.first:Tobi
yields
{ '$or':
[ { '$and': [ { level: 'error' }, { type: 'upload failed' } ] },
{ 'user.name.first': 'Tobi' } ] }
Regexps may be used with the // syntax:
level:info AND name:/^To/
yields
{ '$and': [ { level: 'info' }, { name: /^To/ } ] }
Wildcards may be used to generate regular expressions:
level:error AND hostname:api-*
yields
{ '$and': [ { level: 'error' }, { hostname: /^api-.*$/ } ] }
MIT
FAQs
Mongoose query language for humans inspired by Lucene
The npm package humanquery receives a total of 0 weekly downloads. As such, humanquery popularity was classified as not popular.
We found that humanquery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.