mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 07:34:30 +00:00

PR-URL: https://github.com/nodejs/node/pull/38254 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
7 lines
222 B
JavaScript
7 lines
222 B
JavaScript
const spawn = require('./spawn.js')
|
|
|
|
module.exports = (opts = {}) =>
|
|
spawn(['status', '--porcelain=v1', '-uno'], opts)
|
|
.then(res => !res.stdout.trim().split(/\r?\n+/)
|
|
.map(l => l.trim()).filter(l => l).length)
|