Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Line | |
---|
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)
|
---|
5 | module.exports = ({ cwd = process.cwd() } = {}) =>
|
---|
6 | stat(cwd + '/.git').then(() => true, () => false)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.