
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
node-where-filter
Advanced tools
npm install node-where-filter
const wherefilter = require( 'node-where-filter' );
var exprTree = wherefilter.makeTree( 'name=Jack && age>10 && alias<10', { alias: 'other name' } );
console.log( exprTree );
// echo: [ '&&', [ '=', 'name', 'Jack' ], [ '>', 'age', 10 ] ]
var dataTable = [
{ name: 'Jack', age: 20 },
{ name: 'Jack', age: 29 },
{ name: 'Mike', age: 20 },
{ name: 'Jack', age: 9 },
];
console.log( dataTable.filter( wherefilter.where( exprTree ) ) );
// echo: [ { name: 'Jack', age: 20 }, { name: 'Jack', age: 29 } ]
console.log( wherefilter.whereSQL( exprTree ) );
// echo: ( `name` = "Jack" ) AND ( `age` > 10 )
字符串: "aaa\"bbb"
支持的操作符:
比较操作符: ~(regexp) !~(regexp) = != < > <= >=
规则: key operator value
逻辑操作符: && ||
规则: expr operator expr
FAQs
The npm package node-where-filter receives a total of 2 weekly downloads. As such, node-where-filter popularity was classified as not popular.
We found that node-where-filter 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.