Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @lerna/collect-uncommitted with all npm packages installed. Try it out:

var collectUncommitted = require("@lerna/collect-uncommitted")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@lerna/collect-uncommitted v3.16.5

Collect uncommitted changes to working tree for display in error messages


Check git working tree status and collect uncommitted changes for display


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) {

Install lerna for access to the lerna CLI.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free