aswi2020vldc-gitlab/templetes/node_modules/is-path-cwd/index.js @ 9bb1e829
1 |
'use strict'; |
---|---|
2 |
const path = require('path'); |
3 |
|
4 |
module.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 |
};
|