# npm-deep-ls

> A command-line tool that allows you to search for a specified package across all package.json files in a directory and its subdirectories, displaying the dependency tree for each matching package.json.

Latest version **1.0.2** (published 2023-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-deep-ls
pnpm add npm-deep-ls
yarn add npm-deep-ls
bun add npm-deep-ls
```

Provides the command `npm-deep-ls`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-04-13 |
| First published | 2023-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | gluis_11 |

## Links

- npm: https://www.npmjs.com/package/npm-deep-ls
- Repository: https://github.com/luisgregson/npm-deep-ls
- Homepage: https://github.com/luisgregson/npm-deep-ls#readme
- Issues: https://github.com/luisgregson/npm-deep-ls/issues
- npm.io page: https://npm.io/package/npm-deep-ls

## Dependencies (1)

- [ignore](https://npm.io/package/ignore.md) ^5.2.4

## Recent versions

- 1.0.2 (latest) — 2023-04-13
- 1.0.1 — 2023-04-12
- 1.0.0 — 2023-04-12

## README

# npm-deep-ls

`npm-deep-ls` is a command-line tool that allows you to search for a specified package across all package.json files in a directory and its subdirectories, displaying the dependency tree for each matching package.json.

## Usage

There are two ways to use `npm-deep-ls`:

### 1. Installing globally and running from a directory

Install the package globally:

```sh
npm install -g npm-deep-ls
```

Then, run the command from any directory:

```sh
npm-deep-ls <package-name>
```

### 2. Running with npx

Without installing the package, run the following command from any directory:

```sh
npx npm-deep-ls <package-name>
```

Replace `<package-name>` with the name of the package you want to search for.

## Example

If you want to find all instances of the `lodash` package in a directory and its subdirectories, run:

```sh
npx npm-deep-ls lodash
```

```sh
/path/to/your/project/package.json:
my-project@1.0.0 /path/to/your/project
└── lodash@4.17.21

/path/to/your/project/subdir1/package.json:
No instances of lodash found.

/path/to/your/project/subdir2/package.json:
my-subproject@1.0.0 /path/to/your/project/subdir2
└─┬ some-dependency@1.2.3
  └── lodash@4.17.21
```

The output shows the path of each package.json containing `lodash` and the associated dependency tree.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

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