wsl-utils
npmv1.0.0TypeScriptUtilities for working with Windows Subsystem for Linux (WSL)
Safe to adopt
Yes — wsl-utils scores well across adoption, maintenance, weight, supply chain, and licensing. 42.8M downloads per week and 1 known dependents. Last published 27 days ago. 6 releases in the last 2 years.
- AAdoption: grade A, Excellent.
42.8M downloads per week and 1 known dependents.
- AMaintenance: grade A, Excellent.
Last published 27 days ago. 6 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 4 transitive packages, about 27 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding wsl-utils to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing wsl-utils, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the wsl-utils README.
import {isWsl, powerShellPathFromWsl} from 'wsl-utils';
// Check if running in WSL
console.log('Is WSL:', isWsl);
// Get PowerShell path from WSL
console.log('PowerShell path:', await powerShellPathFromWsl());
//=> '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'wsl-utils vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| wsl-utilsthis page | 42.8M | 1 | MIT | 27 days ago |
| is-wsl | 117.6M | 4 | MIT | 19 hours ago |
| type-fest | 337.8M | 6 | (MIT OR CC0-1.0) | 1 day ago |
| path-key | 244.9M | 1 | MIT | 1 day ago |
| default-browser | 52.6M | 1 | MIT | 1 day ago |
| unicorn-magic | 31.6M | 1 | MIT | 1 day ago |
Dependencies
Declared by wsl-utils v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (3)
Used by
Popular packages that depend on wsl-utils.
Relationship graph
Dependencies (left) and dependents (right) of wsl-utils.
Frequently installed together
Get the default browser
TypeScript definitions for node
Check if the process is running inside a container (Docker/Podman)
Check if the process is running in an SSH session
Define a lazily evaluated property on an object
Release history
6 releases in the last two years, typically about 48 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.0latest | 27 days ago | 16 KB | MIT |
| 0.4.0 | 7 months ago | 16 KB | MIT |
| 0.3.1 | 8 months ago | 9.9 KB | MIT |
| 0.3.0 | 9 months ago | 9.4 KB | MIT |
| 0.2.0 | 10 months ago | 6.7 KB | MIT |
| 0.1.0 | 1 year ago | 4.9 KB | MIT |
Overview
wsl-utils is an npm package that utilities for working with Windows Subsystem for Linux (WSL). It is extremely widely used, with about 42.8M downloads per week and 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need utilities for working with Windows Subsystem for Linux (WSL) and value a battle-tested, widely-adopted 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
- Large, well-established user base (42.8M weekly downloads).
- 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.
Maintainers
Funding
Frequently asked questions
Should I use wsl-utils?
Yes — wsl-utils scores well across adoption, maintenance, weight, supply chain, and licensing. 42.8M downloads per week and 1 known dependents. Last published 27 days ago. 6 releases in the last 2 years.
How do I install wsl-utils?
Run `npm install wsl-utils` to add wsl-utils to your npm project.
How many dependencies does wsl-utils have?
wsl-utils declares 5 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 27 KB on disk.
What license is wsl-utils released under?
wsl-utils is distributed under the MIT license.
How popular is wsl-utils?
wsl-utils has approximately 42,847,696 downloads per week and 1 known dependent packages.
Is wsl-utils still maintained?
The most recent release of wsl-utils (v1.0.0) was published 27 days ago.
Does wsl-utils run install scripts?
No. wsl-utils does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.