Projekt

Obecné

Profil

Stáhnout (603 Bajtů) Statistiky
| Větev: | Revize:
1 3a515b92 cagy
# is-wsl [![Build Status](https://travis-ci.org/sindresorhus/is-wsl.svg?branch=master)](https://travis-ci.org/sindresorhus/is-wsl)
2
3
> Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows)
4
5
Can be useful if you need to work around unimplemented or buggy features in WSL.
6
7
8
## Install
9
10
```
11
$ npm install --save is-wsl
12
```
13
14
15
## Usage
16
17
```js
18
const isWsl = require('is-wsl');
19
20
// When running inside Windows Subsystem for Linux
21
console.log(isWsl);
22
//=> true
23
```
24
25
26
## License
27
28
MIT © [Sindre Sorhus](https://sindresorhus.com)