is-wsl
npmv3.1.1TypeScriptCheck if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Overview
is-wsl is an npm package that check if the process is running inside Windows Subsystem for Linux (Bash on Windows). The latest version is 3.1.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check if the process is running inside Windows Subsystem for Linux (Bash on Windows) and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of is-wsl.
Dependencies
Runtime (1)
Dev (4)
Used by
Popular packages that depend on is-wsl.
Alternatives to is-wsl
Returns true if a string has an extglob.
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
🌈Easily set your terminal text color & styles.
Some useful utilities I often need
Get the PATH environment variable key cross-platform
Convert Windows backslash paths to slash paths
Get details about the current Continuous Integration environment
A replacement for process.exit that ensures stdio are fully drained before exiting.
Portable, hub-native terminal panel for devframe — readonly output streaming and fully interactive PTY shells (TUI-capable).
Get paths for storing things like data, config, cache, etc
Cross platform child_process#spawn and child_process#spawnSync
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Frequently installed together
The semantic version parser used by npm.
RFC9562 UUIDs
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Delightful JavaScript Testing.
Like which(1) unix command. Find the first instance of an executable in the PATH.
Simple zero-dependency Growl notifications using GNTP.
Version history
| Version | Published | License |
|---|---|---|
| 3.1.1latest | 5 months ago | MIT |
| 3.1.0 | 2 years ago | MIT |
| 3.0.0 | 2 years ago | MIT |
| 2.2.0 | 6 years ago | MIT |
| 2.1.1 | 6 years ago | MIT |
| 2.1.0 | 7 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
| 1.1.0 | 9 years ago | MIT |
| 1.0.0 | 9 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install is-wsl?
Run `npm install is-wsl` to add is-wsl to your npm project.
What license is is-wsl released under?
is-wsl is distributed under the MIT license.
How popular is is-wsl?
is-wsl has approximately 0 downloads per week and 1 known dependent packages.