Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/nft

Package Overview
Dependencies
Maintainers
9
Versions
61
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)

  • 0.27.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6M
decreased by-3.77%
Maintainers
9
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 05 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc