Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@vercel/nft

Package Overview
Dependencies
Maintainers
8
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/nft

[![CI Status](https://github.com/vercel/nft/actions/workflows/ci.yml/badge.svg)](https://github.com/vercel/nft/actions/workflows/ci.yml)

Source
npmnpm
Version
0.30.0
Version published
Weekly downloads
2.9M
6.73%
Maintainers
8
Weekly downloads
 
Created

What is @vercel/nft?

The @vercel/nft (Node File Tracer) package is a tool used to trace the files that are required by a Node.js application or module at runtime. It is primarily used to determine the minimal set of files necessary to run a Node.js application, which is useful for creating lightweight Docker containers, serverless deployments, and reducing deployment package sizes.

What are @vercel/nft's main functionalities?

File Tracing

This feature allows you to trace the files that are required by a specific entry point file or set of files. The function `nodeFileTrace` takes an array of file paths and returns a list of all the files that are needed to execute them, including node_modules dependencies.

const { nodeFileTrace } = require('@vercel/nft');

(async () => {
  const files = await nodeFileTrace(['path/to/your/file.js']);
  console.log(files);
})();

Other packages similar to @vercel/nft

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

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.

Install

Related posts