npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dependency-tracker

v2.0.0

Published

Return dependency graphs based on dependencies in package.json.

Downloads

3

Readme

deptracker

Display various dependency graphs and related information of the node modules indicated in a given package json

Installation

npm install deptracker

Usage

node app.js $flag

Change the following line in config.json to point to the package you want to create a dependency graph from:

{ "pack":"$PACKAGE_PATH" }

Notes

Configuring the types of dependencies

There are 3 types of dependencies:

production (  dependencies) 

development ( devDependencies)

optional    (optionalDependencies)

The default behaviour of this tool is to output production dependencies plus optional dependencies

If you want to include devDependencies, or only want production dependencies without the optional dependencies. You can modify the app.js in the following statement to use ls1, ls2, ls3, ls4

var ls = require('npm-remote-ls').ls2;

Note that the npm-remote-ls is the fork version from rperlas and not the original one. https://github.com/rperlas/npm-remote-ls

Command Line Flags & Example Outputs

Return a unique flattened list containing the dependencies of the latest version of every module in the package.json:

node app.js latest-all
All Modules
____________________
  ├─core-util-is
  ├─es6-promise
  ├─graceful-fs
  ├─inherits
  ├─isarray
  ├─mongodb-core
  ├─process-nextick-args
  ├─readable-stream
  ├─string_decoder
  ├─util-deprecate
  └─Total: 11

Return a unique flatted list containing the dependencies of the indicated version of every module in the package.json:

node app.js version-all
____________________
All Modules
  ├─core-util-is
  ├─es6-promise
  ├─graceful-fs
  ├─inherits
  ├─isarray
  ├─mongodb-core
  ├─readable-stream
  ├─string_decoder
  └─Total: 9

Return a dependency graph of the latest version of every module in the package.json:

node app.js latest-each
Module: mongodb
{
 "[email protected]": {
  "[email protected]": {},
  "[email protected]": {
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {}
  },
  "[email protected]": {
   "[email protected]": {}
  }
 }
}
Total unique dependencies: 9
________________________________________
Module: sha
{
 "[email protected]": {
  "[email protected]": {},
  "[email protected]": {
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {}
  }
 }
}
Total unique dependencies: 9
________________________________________
Total number of modules: 2

Return a dependency graph of the indicated version of every module in the package.json:

node app.js version-each
Module: mongodb
{
 "[email protected]": {
  "[email protected]": {},
  "[email protected]": {
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {}
  },
  "[email protected]": {
   "[email protected]": {}
  }
 }
}
Total unique dependencies: 9
________________________________________
Module: sha
{
 "[email protected]": {
  "[email protected]": {},
  "[email protected]": {
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {},
   "[email protected]": {}
  }
 }
}
Total unique dependencies: 7
________________________________________
Total number of modules: 2

Return a unique flattened list of dependencies sorted by appearances based on the latest version of every module in package.json:

node app.js latest-count
Formatted as ModuleName, NumberOfOccurences
string_decoder,  2,
core-util-is,  2,
inherits,  2,
readable-stream,  2,
isarray,  2,
util-deprecate,  1,
graceful-fs,  1,
process-nextick-args,  1,
es6-promise,  1,
mongodb-core,  1,
bson,  1

Return a unique flattened list of dependencies sorted by appearances based on the indicated version of every module in package.json:

node app.js version-count
Formatted as ModuleName, NumberOfOccurences
core-util-is,  2,
isarray,  2,
inherits,  2,
readable-stream,  2,
string_decoder,  2,
bson,  1,
graceful-fs,  1,
es6-promise,  1,
mongodb-core,  1

Returns a unique flattened list containing the dependencies of the latest version of every module (where dependencies of differing versions are considered different) in the package.json.

node app.js latest-nocut
All Modules
____________________
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  └─Total: 12

Returns a unique flattened list containing the dependencies of the indicated version of every module (where dependencies of differing versions are considered different) in the package.json.

node app.js version-nocut
All Modules
____________________
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  ├─[email protected]
  └─Total: 12

API

To be implemented.