Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@apexdevtools/vf-parser
Advanced tools
Parser for Salesforce Visualforce. This is based on an ANTLR4 grammar, see antlr/ApexParser.g4.
There are two builds of the parser available, a NPM module for use with Node and a Maven package for use on JVMs.
These builds just contain the Parser & Lexer and provides no further support for analysing the generated parse trees beyond what is provided by ANTLR4.
To parse a page file (NPM version):
let lexer = new VFLexer(CharStreams.fromString("<apex:page/>"));
let tokens = new CommonTokenStream(lexer);
let parser = new VFParser(tokens);
let context = parser.vfUnit();
The 'context' is a VfUnitContext object which is the root of the parsed representation of the page. You can access the parse tree via functions on it.
Maven
<dependency>
<groupId>io.github.apex-dev-tools</groupId>
<artifactId>vf-parser</artifactId>
<version>1.1.0</version>
</dependency>
NPM
"@apexdevtools/vf-parser": "^1.1.0"
To build both distributions:
npm run build
1.0.0 - Initial version, Move to @apexdevtools/vf-parser
All the source code included uses a 3-clause BSD license.
FAQs
Salesforce Visualforce parser
The npm package @apexdevtools/vf-parser receives a total of 68 weekly downloads. As such, @apexdevtools/vf-parser popularity was classified as not popular.
We found that @apexdevtools/vf-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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.