
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.
function-parser
Advanced tools
High performace function call parser, parse text and call function with argument without eval
Function parser is good for cases when you want to describe function calls without the string overheads of json.
//Require all Function parser module
const FunctionParser = require('function-parser');
//Or Directly load the desired `parse`
const {parse} = require('function-parser');
//Simple usage
parse('foo(1,"bar");foo(,"bar")')
/*=> [
{
name: "foo",
args: [
1,
"bar"
]
},
{
name: "foo",
args: [
null,
"bar"
]
}
]*/
import {parse} from 'function-parser';
//Usage
parse('test({"json works": "However, for best performance it is recommended not to use json"})')
/*=> [
{
name: "test",
args: [
{
"json works": "However, for best performance it is recommended not to use json"
}
]
}
]*/
FAQs
Safe function call parser
The npm package function-parser receives a total of 0 weekly downloads. As such, function-parser popularity was classified as not popular.
We found that function-parser 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.