# dependency-mapper

> A tool for mapping dependencies in a Node.js project.

Latest version **2.0.0** (published 2023-02-12) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dependency-mapper
pnpm add dependency-mapper
yarn add dependency-mapper
bun add dependency-mapper
```

Provides the command `dependency-mapper`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-02-12 |
| First published | 2023-02-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 42.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rahul Jindal |
| Maintainers | rahul.jindal |
| Keywords | dependency mapper, dependency graph, dependency tree, dependency generator, file iterator |

## Links

- npm: https://www.npmjs.com/package/dependency-mapper
- npm.io page: https://npm.io/package/dependency-mapper

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^17.6.2
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5
- [json-diff](https://npm.io/package/json-diff.md) ^1.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2023-02-12
- 1.1.3 — 2023-02-08
- 1.1.0 — 2023-02-05
- 1.0.0 — 2023-02-05

## README

# 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:

1. Install the package using npm by running `npm install dependency-mapper`.
2. Generate `mapper.json` file by running `dependency-mapper -t <Relative path of file or folder>` or `npx dependency-mapper -t <Relative path of file or folder>`.
3. The generated JSON file will be located in the project directory.

### Prerequisites

- Node.js
- npm

## Authors

- Rahul Jindal

---
_Source: https://npm.io/package/dependency-mapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
