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

@npmcli/installed-package-contents

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/installed-package-contents

Get the list of files installed in a package in node_modules, including bundled dependencies

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.8M
increased by3.8%
Maintainers
6
Weekly downloads
 
Created

What is @npmcli/installed-package-contents?

The @npmcli/installed-package-contents package is designed to help developers work with the contents of installed packages in a Node.js environment. It provides functionalities for listing and analyzing the files within an installed npm package. This can be particularly useful for tasks such as auditing, packaging, or any operation that requires understanding the structure and contents of installed packages.

What are @npmcli/installed-package-contents's main functionalities?

Listing package contents

This feature allows you to list all the files contained in a specific installed package. The function takes the path to the package as an argument and returns a list of files included in the package.

const installedPackageContents = require('@npmcli/installed-package-contents');

async function listContents() {
  const contents = await installedPackageContents('/path/to/package');
  console.log(contents);
}

listContents();

Other packages similar to @npmcli/installed-package-contents

FAQs

Package last updated on 26 Sep 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