# ls-deps

> List dependencies of an ES6 or SystemJS based project

Latest version **0.1.0** (published 2016-05-17) · MIT license · 0 weekly downloads

## Install

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

Provides the command `ls-deps`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-05-17 |
| First published | 2015-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matthew Phillips |
| Maintainers | matthewp |
| Keywords | es6, systemjs |

## Links

- npm: https://www.npmjs.com/package/ls-deps
- Repository: https://github.com/matthewp/ls-deps
- Issues: https://github.com/matthewp/ls-deps/issues
- npm.io page: https://npm.io/package/ls-deps

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^1.3.3
- [steal-tools](https://npm.io/package/steal-tools.md) ^0.16.3

## Recent versions

- 0.1.0 (latest) — 2016-05-17
- 0.0.6 — 2015-02-09
- 0.0.5 — 2015-02-08
- 0.0.4 — 2015-02-06
- 0.0.3 — 2015-02-04
- 0.0.2 — 2015-02-04
- 0.0.1 — 2015-02-04

## README

# ls-deps

A utility for displaying the dependency graph of modules in your project. It's like `npm ls`, but for client-side projects using StealJS.

## Usage

```shell
> ls-deps --help

Get all dependencies of a project

Examples:
  ls-deps --config config app/app    Use config to get the dependencies for app/app


Options:
  --config    A module used to configure the loader           
  --base-url  The root folder used to load modules from       
  --depth     The depth of modules to show                      [default: 3]
  --inverse   Show all of the modules that are dependants on N
  --steal     A Steal based project                           
  --version   Show version number                             

Must provide a module to fetch dependencies for
```

## Example

```shell
> ls-deps main

├─┬ foo
| ├── bar
| └─┬ baz
| | └── qux
└── bar
```

In the above example `main` is the main module and the dependencies listed are all chidren.  Use `--depth` to control how deep we go; by default we go 3 levels deep.

## Options

### --config

Specifies a module that will act as configuration for the main module you'll load. This is optional and `package.json` will be used by default.

### --base-url

Specifies a folder to act as the root folder for your project. It is equivalent to `System.baseURL`.

### --depth

Specifies how *deep* to go in showing a module's dependencies. By default `ls-deps` uses a depth of **3**, which means we'll show your module's dependencies and its dependencies.

### --inverse

Inverse is a nice feature when you're trying find out what modules depend on a certain other module. To follow our example above, what if you wanted to know which modules depend on **bar**. By specifying the `inverse` option you can see all of bars dependants.

```shell
> ls-deps --inverse bar main

├─ foo
└─ qux
```

As shown above **foo** and **qux** depend on **bar**.  I use this feature to see if my coworkers are requiring all of lodash instead of the individual module they need.

## License

MIT

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