# @spryker-lerna/collect-uncommitted

> Collect uncommitted changes to working tree for display in error messages

Latest version **5.1.0** (published 2022-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @spryker-lerna/collect-uncommitted
pnpm add @spryker-lerna/collect-uncommitted
yarn add @spryker-lerna/collect-uncommitted
bun add @spryker-lerna/collect-uncommitted
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.1.0 |
| Published | 2022-06-04 |
| First published | 2022-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^14.19.3 \|\| >=16.0.0 |
| Dependencies | 3 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36038 |
| Author | Daniel Stockman |
| Maintainers | spryker-bot |
| Keywords | lerna, utils, git, tree |

## Links

- npm: https://www.npmjs.com/package/@spryker-lerna/collect-uncommitted
- Repository: https://github.com/lerna/lerna
- Homepage: https://github.com/lerna/lerna/tree/master/utils/collect-uncommitted#readme
- Issues: https://github.com/lerna/lerna/issues
- npm.io page: https://npm.io/package/@spryker-lerna/collect-uncommitted

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [npmlog](https://npm.io/package/npmlog.md) ^4.1.2
- [@spryker-lerna/child-process](https://npm.io/package/@spryker-lerna/child-process.md) 5.1.0

## Recent versions

- 5.1.0 (latest) — 2022-06-04
- 5.2.0 (lerna-temp) — 2022-06-04

## README

# `@lerna/collect-uncommitted`

> Check git working tree status and collect uncommitted changes for display

## Usage

```js
const { collectUncommitted } = require("@lerna/collect-uncommitted");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  log: require("npmlog"),
};

(async () => {
  try {
    const results = await collectUncommitted(options);
    console.log(`Uncommitted changes on CWD ${options.cwd}: ${results.join("\n")}`);
  } catch (err) {
    console.error(err.message);
  }
})();
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

---
_Source: https://npm.io/package/@spryker-lerna/collect-uncommitted · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
