source:
trip-planner-front/node_modules/@npmcli/git/lib/is.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
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.