</>PackageGraphPackageGraph

wsl-utils

npmv1.0.0TypeScript

Utilities 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.

2
Direct dependencies

Runtime packages this one declares itself.

4
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

27 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

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

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
wsl-utilsthis page42.8M1MIT27 days ago
is-wsl117.6M4MIT19 hours ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
path-key244.9M1MIT1 day ago
default-browser52.6M1MIT1 day ago
unicorn-magic31.6M1MIT1 day ago

Dependencies

Declared by wsl-utils v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (2)

is-wsl ^3.1.0powershell-utils ^0.1.0

Dev (3)

ava ^6.4.1typescript ^5.9.3xo ^1.2.3

Used by

Popular packages that depend on wsl-utils.

Relationship graph

Dependencies (left) and dependents (right) of wsl-utils.

is-wslopenwsl-utils
wsl-utils dependencies dependents

Frequently installed together

Release history

6 releases in the last two years, typically about 48 days apart.

Recent versions of wsl-utils
VersionPublishedSizeLicense
1.0.0latest27 days ago16 KBMIT
0.4.07 months ago16 KBMIT
0.3.18 months ago9.9 KBMIT
0.3.09 months ago9.4 KBMIT
0.2.010 months ago6.7 KBMIT
0.1.01 year ago4.9 KBMIT

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

Keywords

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.