# collapse-yarn-lockfile

> Collapse yarn.lock dependencies

Latest version **0.1.4** (published 2020-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install collapse-yarn-lockfile
pnpm add collapse-yarn-lockfile
yarn add collapse-yarn-lockfile
bun add collapse-yarn-lockfile
```

Provides the command `collapse-yarn-lockfile`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-02-20 |
| First published | 2020-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 11 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Brewer-Davis @michaelbrewerdavis |
| Maintainers | mbrewerdavis |
| Keywords | oclif |

## Links

- npm: https://www.npmjs.com/package/collapse-yarn-lockfile
- Repository: https://github.com/michaelbrewerdavis/collapse-yarn-lockfile
- Issues: https://github.com/michaelbrewerdavis/collapse-yarn-lockfile/issues
- npm.io page: https://npm.io/package/collapse-yarn-lockfile

## Dependencies (11)

- [tslib](https://npm.io/package/tslib.md) ^1
- [semver](https://npm.io/package/semver.md) ^7.1.1
- [prompts](https://npm.io/package/prompts.md) ^2.3.1
- [ts-node](https://npm.io/package/ts-node.md) ^8
- [@types/node](https://npm.io/package/@types/node.md) ^10
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1
- [@types/semver](https://npm.io/package/@types/semver.md) ^6.2.0
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1
- [@yarnpkg/lockfile](https://npm.io/package/@yarnpkg/lockfile.md) ^1.1.0
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^2
- [@types/yarnpkg__lockfile](https://npm.io/package/@types/yarnpkg__lockfile.md) ^1.1.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2020-02-20
- 0.1.3 — 2020-01-13
- 0.1.2 — 2020-01-13
- 0.1.1 — 2020-01-13
- 0.1.0 — 2020-01-13

## README

collapse-yarn-lockfile
=================

Collapse redundant dependencies in yarn lockfile.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/collapse-yarn-lockfile.svg)](https://npmjs.org/package/collapse-yarn-lockfile)
[![Downloads/week](https://img.shields.io/npm/dw/collapse-yarn-lockfile.svg)](https://npmjs.org/package/collapse-yarn-lockfile)
[![License](https://img.shields.io/npm/l/collapse-yarn-lockfile.svg)](https://github.com/michaelbrewerdavis/collapse-yarn-lockfile/blob/master/package.json)

This package analyzes a yarn lockfile for dependencies that could be met by a pre-existing resolution and outputs
a new lockfile which uses that dependency.

# Usage
```sh-session
QUICK START
  $ npx collapse-yarn-lockfile yarn.lock

  # remove orphaned dependencies
  $ yarn

USAGE
  $ collapse-yarn-lockfile [FILE]

OPTIONS
  -d, --allowDowngrade               Allow resolutions to be downgraded to a pre-existing resolution
  -f, --packageFilter=packageFilter  Regex filter for packages to be modified
  -h, --help                         show CLI help
  -i, --interactive                  Prompt for each collapsed library
  -v, --verbose
  --version                          show CLI version
```

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