1.0.0 • Published 4 years ago

depgraph-bin v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Description

A dependency graph profiler that outputs the dependencies (both file and package dependencies) of a file.

Usage

npm i depGraph -g

You can use it anywhere in your machine.

You have a Node app

/node-prj
    -/src
        -/a
            -/aa
                -aa.js
            -a.js
        -/b
            -b.js
        -/c
            -c.js
        -index.js
        -package.json

To get the dependencies of a.js:

cd node-prj
depGraph src/a/a.js

Output:

{
    name: "src/a/a.js",
    filePath: "src/a/a.js",
    fileDependency: true,
    dependencies: [
        ...
    ]
}

Contributing

All pull requests and issues are welcome.