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.
@vercel/build-utils
Advanced tools
@vercel/build-utils is a utility package designed to assist with the building and deployment of applications on the Vercel platform. It provides a set of tools and functions that help in managing build processes, handling file systems, and working with environment variables, among other tasks.
File System Utilities
This feature provides utilities for working with the file system, such as globbing patterns to find files and downloading files. The code sample demonstrates how to use the `glob` function to find all files in a directory.
const { glob, download, FileFsRef } = require('@vercel/build-utils');
async function example() {
const files = await glob('**', '/path/to/directory');
console.log(files);
}
example();
Environment Variables
This feature helps in managing environment variables for a package. The code sample shows how to retrieve environment variables for a specific package.
const { getEnvForPackage } = require('@vercel/build-utils');
async function example() {
const env = await getEnvForPackage('/path/to/package');
console.log(env);
}
example();
Build Metadata
This feature allows you to retrieve build metadata for a project. The code sample demonstrates how to get build metadata for a given project.
const { getBuildMetadata } = require('@vercel/build-utils');
async function example() {
const metadata = await getBuildMetadata('/path/to/project');
console.log(metadata);
}
example();
Webpack is a popular module bundler for JavaScript applications. It offers a wide range of features for managing and optimizing build processes, including code splitting, loaders, and plugins. Unlike @vercel/build-utils, which is tailored for Vercel deployments, Webpack is more general-purpose and can be used in various environments.
Gulp is a toolkit for automating time-consuming tasks in your development workflow. It uses a code-over-configuration approach to define tasks, making it flexible and easy to use. While @vercel/build-utils focuses on Vercel-specific build utilities, Gulp provides a more general solution for automating tasks like minification, compilation, and testing.
Rollup is a module bundler for JavaScript that compiles small pieces of code into something larger and more complex, such as a library or application. It is known for its tree-shaking capabilities, which help in removing unused code. Rollup is more focused on bundling JavaScript modules, whereas @vercel/build-utils offers a broader range of build-related utilities.
FAQs
Unknown package
The npm package @vercel/build-utils receives a total of 869,463 weekly downloads. As such, @vercel/build-utils popularity was classified as popular.
We found that @vercel/build-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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 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.