npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

@lerna/collect-uncommitted

3.14.2 • Public • Published

@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.

install

npm i @lerna/collect-uncommitted

Downloadsweekly downloads

249,052

version

3.14.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability