Socket
Socket
Sign inDemoInstall

npm-analyze

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    npm-analyze

CLI tool to analyze the dependencies of your project. Size, count, and overhead in modules


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
24.0 MB
Created
Weekly downloads
 

Readme

Source

npm-analyze

CLI tool to analyze the content, or the dependencies of your project. Can show you the files that would clutter your npm package with unused files, or you can use it to take a look in your dependencies, and see how much extra space they use of similar files.

Installation

npm install -g npm-analyze

Usage

For your own package

Just run the command in the folder you wish to check:

$ npm-analyze

This will analyze your project for files not explicitly related to the functionality for your package and show you everything that should not be part of an npm package.

npm-analyze result

Information about other deps, in your project

$ npm-analyze --deps

Depending on the size of the project this may take a while, but it will show you some stats like this:

npm-analyze result

JSON output

To get the raw data in JSON, just add the --json switch to the command;

$ npm-analyze --json
$ npm-analyze --json --deps

Keywords

FAQs

Last updated on 28 Oct 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc