NET-Web-API-w-Angular/my-app/node_modules/@npmcli/git/lib/is-clean.js

7 lines
222 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
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)