This commit is contained in:
eric sciple 2020-01-24 12:30:26 -05:00
parent 00c3b50fca
commit ae5dcb46c8
7331 changed files with 1784502 additions and 0 deletions

25
node_modules/is-wsl/index.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
const os = require('os');
const fs = require('fs');
const isWsl = () => {
if (process.platform !== 'linux') {
return false;
}
if (os.release().includes('Microsoft')) {
return true;
}
try {
return fs.readFileSync('/proc/version', 'utf8').includes('Microsoft');
} catch (err) {
return false;
}
};
if (process.env.__IS_WSL_TEST__) {
module.exports = isWsl;
} else {
module.exports = isWsl();
}

21
node_modules/is-wsl/license generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

44
node_modules/is-wsl/package.json generated vendored Normal file
View file

@ -0,0 +1,44 @@
{
"name": "is-wsl",
"version": "1.1.0",
"description": "Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)",
"license": "MIT",
"repository": "sindresorhus/is-wsl",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"check",
"wsl",
"windows",
"subsystem",
"linux",
"detect",
"bash",
"process",
"console",
"terminal",
"is"
],
"devDependencies": {
"ava": "*",
"clear-require": "^2.0.0",
"proxyquire": "^1.7.11",
"xo": "*"
}
,"_resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz"
,"_integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0="
,"_from": "is-wsl@1.1.0"
}

28
node_modules/is-wsl/readme.md generated vendored Normal file
View file

@ -0,0 +1,28 @@
# is-wsl [![Build Status](https://travis-ci.org/sindresorhus/is-wsl.svg?branch=master)](https://travis-ci.org/sindresorhus/is-wsl)
> Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows)
Can be useful if you need to work around unimplemented or buggy features in WSL.
## Install
```
$ npm install --save is-wsl
```
## Usage
```js
const isWsl = require('is-wsl');
// When running inside Windows Subsystem for Linux
console.log(isWsl);
//=> true
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)