
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@netlify/build-info
Advanced tools
Build info is the core part of detecting settings and heuristics about the users code. The library is platform agnostic to be used in our React UI, Node.js CLI and build system.
It provides a layered approach to detecting the following information:
How to use it: First of all, you need to create a FileSystem
that works for your platform. For Node.js we ship already
one that can be used: For other platforms, a file system needs to implement the FileSystem
interface:
import { FileSystem } from '@netlify/build-info'
export class WebFS extends FileSystem {
// ...
}
After that the core piece is the Project that needs to be initialized with a file system, the base directory and an optional repository root.
It is important to note that setting a node version is important for some frameworks to load the correct plugins.
const project = new Project(fs, baseDir, root).setEnvironment(process.env).setNodeVersion(process.version)
after that on the project, we can call multiple methods like getBuildSettings
which is running all the other steps as
well.
# will use the current working directory as base directory
$ build-info
$ build-info /project/root/dir
$ build-info path/to/site --rootDir /project/root/dir
Please see CONTRIBUTING.md for instructions on how to set up and work on this repository. Thanks for contributing!
FAQs
Build info utility
The npm package @netlify/build-info receives a total of 111,476 weekly downloads. As such, @netlify/build-info popularity was classified as popular.
We found that @netlify/build-info demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.