We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98932b5 commit d9bf355Copy full SHA for d9bf355
lib/is.js
@@ -1,6 +1,4 @@
1
// not an airtight indicator, but a good gut-check to even bother trying
2
-const { promisify } = require('util')
3
-const fs = require('fs')
4
-const stat = promisify(fs.stat)
+const { stat } = require('fs/promises')
5
module.exports = ({ cwd = process.cwd() } = {}) =>
6
stat(cwd + '/.git').then(() => true, () => false)
0 commit comments