Files
Botexercito/Frontend/angular-internal-chat/node_modules/@npmcli/git/lib/is-clean.js
T
2026-03-22 18:07:19 +00:00

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)