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.
Represents code <--> AST
Can be initialized with a code, an AST or a file path
// by code
var sourceCode = new SourceCode({ code: 'var obj = { a: 1, b: 2 };' });
// by AST
var sourceCode = new SourceCode({ ast: some_ast_object });
// by file
var sourceCode = new SourceCode({ file: './some-file.js' });
All source code
instances have ast
, code
and filename
properties
var ast = sourceCode.ast;
var code = sourceCode.code;
var file_name = sourceCode.file;
AstSearcher has only static method that parse an AST and return a path
FAQs
AST searcher and modifier
The npm package castborg receives a total of 5 weekly downloads. As such, castborg popularity was classified as not popular.
We found that castborg 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.