
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
parser-lang
Advanced tools
A parser combinator library for JavaScript with declarative superpowers
ParserLang is parser combinator library. It lets you make parsers by combining other parsers.
Its primary superpower is the ability to define parsers declaratively with template literals:
import { lang } from 'parser-lang';
let { calc } = lang`
num = /[0-9]+/ > ${ch => parseInt(ch, 10)};
addExpr = num '+' multExpr > ${([left, op, right]) => left + right}
| num ;
multExpr = addExpr '*' multExpr > ${([left, op, right]) => left * right}
| addExpr ;
calc = multExpr ;
`;
calc.tryParse('1+1*2');
// 3
It's monadic and stuff but don't get too hung up on that. It tries to be very friendly.
npm install parser-lang
FAQs
A parser combinator library for JavaScript with declarative superpowers
The npm package parser-lang receives a total of 9 weekly downloads. As such, parser-lang popularity was classified as not popular.
We found that parser-lang 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.