New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

depject-tree

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depject-tree

tool for showing all dependencies in a depject project (or projects)

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

depject-tree

tool for showing all dependencies in a depject project (or projects)

indirection can be useful for decoupling (and thus modularity) but this indirection can make code harder to understand if there are no tools to show you the routes things take.

usage

> npm install -g depject-tree

> depject-tree . node_modules/patchcore
... outputs json object...

the format is:

<path>: {
  "needs": {
    <api>: [<places this api is provided>],
  },
  "gives": {
    <api>: [<places this api is used>]
  }
}

here is a portion of the output for patchbay@6 it represents the split module, which shows two or more screen_views side by side. it also gives screen_view which is used by the app, tabs, and split modules.

...
"modules_extra/split.js": {
  "needs": {
    "screen_view": [
      "modules_basic/invite.js",
      "modules_basic/setup.js",
      "modules_extra/blob.js",
      "modules_extra/key.js",
      "modules_extra/network.js",
      "modules_extra/query.js",
      "modules_extra/versions.js"
    ]
  },
  "gives": {
    "screen_view": [
      "modules_core/app.js",
      "modules_core/tabs.js",
      "modules_extra/split.js"
    ]
  }
},
...

todo

  • prettier output
  • make it easy to quickly query about specific modules

License

MIT

FAQs

Package last updated on 13 Aug 2017

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