Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
estree-is-member-expression
Advanced tools
check if an AST node is a MemberExpression, in general or a specific one
check if an AST node is a MemberExpression, in general or a specific one
npm install estree-is-member-expression
var isMemberExpression = require('estree-is-member-expression')
var node = parse('function a () {}')
isMemberExpression(node) // false
var node = parse('module.exports')
isMemberExpression(node) // true
isMemberExpression(node, 'module.exports') // true
isMemberExpression(node, 'module.filename') // false
isMemberExpression(node, 'module.filename.toString') // false
var node = parse('module.filename.toString')
isMemberExpression(node, 'module.filename.toString') // true
Also see the tests for more examples.
isMemberExpression(node, pattern)
Check if node
is a MemberExpression.
If pattern
is given, check if node
is a MemberExpression matching the pattern
.
pattern
can be a .-delimited string or an array. The pattern can contain more than two elements, all of them must match.
1.0.0 / 2018-01-06
FAQs
check if an AST node is a MemberExpression, in general or a specific one
The npm package estree-is-member-expression receives a total of 35,753 weekly downloads. As such, estree-is-member-expression popularity was classified as popular.
We found that estree-is-member-expression 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.