Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.