Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
broccoli-node-info
Advanced tools
Inspect Broccoli nodes; thin wrapper around node.__broccoliGetInfo__()
This is a low-level package used to communicate with Broccoli nodes (that is,
plugin instances). It provides a thin wrapper around
node.__broccoliGetInfo__()
, normalizing different versions of the node API
to the newest version.
This package is mainly used by the Broccoli Builder
class, but it can also
be used for inspecting nodes for testing, wrapping, diagnostics, or similar
purposes. If you are tempted to call node.__broccoliGetInfo__()
or access
private variables on
broccoli-plugin instances,
such as node._name
or node._inputNodes
, then use this package instead!
For background on the Broccoli node API, see docs/node-api.md.
var broccoliNodeInfo = require('broccoli-node-info');
node = new SomeBroccoliPlugin();
var nodeInfo = broccoliNodeInfo.getNodeInfo(node);
// Now we can use nodeInfo.name, nodeInfo.annotation, etc.
getNodeInfo(node)
This function calls node.__broccoliGetInfo__(broccoliNodeInfo.features)
.
For node
objects conforming to the most recent node API, it simply returns
the resulting nodeInfo
object.
For node
object conforming to an older version of the node API, it provides
compatibility code to normalize the nodeInfo
object.
As a result, regardless of the API version used by the node
object, we
obtain a nodeInfo
object conforming to the current specification in
docs/node-api.md
This function throws a broccoliNodeInfo.InvalidNodeError
when called with
Builder
, they
are deprecated in favor of
broccoli-source),.read/.rebuild
API (see
docs/broccoli-1-0-plugin-api.md), orInvalidNodeError
Error
subclass, potentially thrown by getNodeInfo()
.
features
A hash of all supported feature flags. This hash acts like a version number for the node API. In the current version, its value is
{
persistentOutputFlag: true,
sourceDirectories: true
}
FAQs
Inspect Broccoli nodes; thin wrapper around node.__broccoliGetInfo__()
The npm package broccoli-node-info receives a total of 370,491 weekly downloads. As such, broccoli-node-info popularity was classified as popular.
We found that broccoli-node-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.