# wsl-drvfs-stack-formatter

> Replaces drvfs mountpoints with Windows pathnames in Error stacktraces when using node under the Windows Subsystem for Linux

Latest version **1.0.0** (published 2018-07-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install wsl-drvfs-stack-formatter
pnpm add wsl-drvfs-stack-formatter
yarn add wsl-drvfs-stack-formatter
bun add wsl-drvfs-stack-formatter
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-20 |
| First published | 2018-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | notlaforge |

## Links

- npm: https://www.npmjs.com/package/wsl-drvfs-stack-formatter
- npm.io page: https://npm.io/package/wsl-drvfs-stack-formatter

## Dependencies (1)

- [is-wsl](https://npm.io/package/is-wsl.md) ^1.1.0

## Recent versions

- 1.0.0 (latest) — 2018-07-20

## README

### What
Replaces drvfs mountpoints
with Windows pathnames
in Error stacktraces
when using node
under the Windows Subsystem for Linux

### Why 🤔
I use https://github.com/Microsoft/vscode
and develop under WSL.
When I see stacktraces, I'd like
to be able to click to jump
to a `UGH:\dir\file.js:line` spot.

### How
```
Error.prepareStackTrace = require('wsl-drvfs-stack-formatter');
```

### But
If you're not under WSL,
this is a no-op,
so you don't need to
include it conditionally.

If you already have
[another formatter](https://github.com/v8/v8/wiki/Stack-Trace-API),
you can safely place this one after it,
as it can cope with an existing one
that returns a string.

---
_Source: https://npm.io/package/wsl-drvfs-stack-formatter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
