
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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 1 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
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.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.