Socket
Socket
Sign inDemoInstall

@lerna/collect-uncommitted

Package Overview
Dependencies
47
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lerna/collect-uncommitted

Collect uncommitted changes to working tree for display in error messages


Version published
Weekly downloads
477K
decreased by-0.48%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc