3.18.1 • Published 3 years ago

@merna/collect-uncommitted v3.18.1

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
3 years ago

@lerna/collect-uncommitted

Check git working tree status and collect uncommitted changes for display

Usage

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 for access to the lerna CLI.

3.18.1

3 years ago

3.18.0

3 years ago