codekingpro/portable-devtools
115k
1const spawn = require('./spawn.js')
2
3module.exports = (opts = {}) =>
4 spawn(['status', '--porcelain=v1', '-uno'], opts)
5 .then(res => !res.stdout.trim().split(/\r?\n+/)
6 .map(l => l.trim()).filter(l => l).length)
7 