source: trip-planner-front/node_modules/@npmcli/git/lib/is.js@ 76712b2

Last change on this file since 76712b2 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
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)
Note: See TracBrowser for help on using the repository browser.