2.0.0 • Published 1 year ago
dependency-mapper v2.0.0
Dependency Mapper
A Node.js application to iterate over a folder or a file and generate a JSON file that lists down all relative dependencies used in the module. The application maps these imports to find all the relative imports for both commonJS and ES6 modules, making it easier to understand the external dependencies of the project.
Note:- This package do not support alias imports rights now and they might be shown as other imports along with npm imports.
Getting Started
To use the Dependency Mapper, follow these steps:
- Install the package using npm by running
npm install dependency-mapper
. - Generate
mapper.json
file by runningdependency-mapper -t <Relative path of file or folder>
ornpx dependency-mapper -t <Relative path of file or folder>
. - The generated JSON file will be located in the project directory.
Prerequisites
- Node.js
- npm
Authors
- Rahul Jindal