
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Package for expressing logical operations in JSON. Useful for storing logical procedures in a database.
Package for expressing logical operations in JSON. Useful for storing logical procedures in a database.
var JSONMath = require('json-logic');
var logic = new JSONLogic();
var result = logic .execute({
"a": {
"operation": "||",
"variables": [
{
"operation": "<",
"variables": [
5,
1
]
},
{
"operation": "&&",
"variables": [
{
"operation": "==",
"variables": [
8,
2
]
},
true
]
}
]
}
});
After this has executed, the value of a
will be false
.
You can also pass in an array of operations to perform, and even reference variables inside the procedure
[
{
"a": true,
"b": false
},
{
"c": {
"operation": "&&",
"variables": [
"a",
"b"
]
}
},
{
"c": "c"
}
]
After this the value of a
will be true
, b
will be false
and c
will be false
.
FAQs
Package for expressing logical operations in JSON. Useful for storing logical procedures in a database.
The npm package json-logic receives a total of 81 weekly downloads. As such, json-logic popularity was classified as not popular.
We found that json-logic 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.