• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// not an airtight indicator, but a good gut-check to even bother trying
2const { promisify } = require('util')
3const fs = require('fs')
4const stat = promisify(fs.stat)
5module.exports = ({ cwd = process.cwd() } = {}) =>
6  stat(cwd + '/.git').then(() => true, () => false)
7