
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.
where-clause-evaluate
Advanced tools
Where clause parser, compiler, evaluator - A javascript tool to evaluate where clauses against objects in Ember.js
Works like so:
var Where = require("where-clause-evaluate");
var record = { firstName : 'Rudolf', nickName : 'Rednose', lastName : 'Reindeer', isEnlightening : true };
var evaluate = Where.newEvaluator({ cache : true }); // { cache : true }, so that the same clause doesn't get compiled more than once
console.log("We have an enlightening rednose amongst ourselves : " + evaluate(record, 'where firstName = "Rudolf" and isEnlightening = true'));
Supports precedence -> meaning brackets, and the operators/operations:
=, !=, <, <=, >, >=, in (for constant arrays), and, or, not <- all case sensitive
see the file js/lib/anlr4/parsers/where/Where.g4 for the grammar
I'm currently using this as a where clause/query evaluator for an Ember.js local datastorage adapter
As the project is based on antlr - the compiler is quickly rewritten in java, .net or C and made to execute against an sql, nosql or orm where clause
Thanks goes to the antlr4 dudes for creating such a great tool for creating parsers: www.antlr.org
FAQs
A tool for evaluating where clauses
We found that where-clause-evaluate 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.