1.0.3 • Published 5 years ago

js-dependency-viewer v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

JS Dependency Viewer

A simple tool to find all external dependencies of your project.

How to install:

Globally

npm install -g js-dependency-viewer

Then you can run from your terminal with parameters: 1. Required parameter --target="/path/to/application" 2. Optional parameter --out="result.json" (default: stdout to console) 3. Optional parameter --ext="extension1,extension2,extension3" (default: ['.vue', '.js', '.ts', '.js6', '.es6'])

jdv --target="/path/to/application" --out="result.json"

Locally:

npm install --save js-dependency-viewer
const jdv = require('js-dependency-viewer');

jdv.find('/path/to/application').then((dependencyObject) => {
    // ...
});

Output:

[{
    "module": "debounce",
    "size": 11.3,
    "methods": [{
        "name": "debounce",
        "location": [
            "target\\src\\component1.vue",
            "target\\src\\component2.vue",
            "target\\src\\component3.vue"
        ]
    }]
}, {  
    "module":"lodash",
    "size": 1361.92,
    "methods":[  
        {  
        "name":"get",
        "location":[  
            "target\\src\\file1.ts",
            "target\\src\\file2.ts"
        ]},
        {  
        "name":"each",
        "location":[  
            "target2\\src\\file3.ts"
        ]}
    ]
}]
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago