Nine Pedestrians Mesmerized
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@lerna/collect-uncommitted

3.16.5 • 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

925,274

Version

3.16.5

License

MIT

Unpacked Size

5.29 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar