source: trip-planner-front/node_modules/is-path-cwd/index.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: 256 bytes
Line 
1'use strict';
2const path = require('path');
3
4module.exports = path_ => {
5 let cwd = process.cwd();
6
7 path_ = path.resolve(path_);
8
9 if (process.platform === 'win32') {
10 cwd = cwd.toLowerCase();
11 path_ = path_.toLowerCase();
12 }
13
14 return path_ === cwd;
15};
Note: See TracBrowser for help on using the repository browser.