# win32

> Windows specific node functions

Latest version **8.0.0** (published 2026-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install win32
pnpm add win32
yarn add win32
bun add win32
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2026-02-13 |
| First published | 2014-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 6 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | coderaiser |
| Maintainers | coderaiser |

## Links

- npm: https://www.npmjs.com/package/win32
- Repository: https://github.com/coderaiser/win32
- Homepage: http://github.com/coderaiser/win32
- Issues: https://github.com/coderaiser/win32/issues
- npm.io page: https://npm.io/package/win32

## Dependencies (6)

- [mellow](https://npm.io/package/mellow.md) ^3.0.0
- [redzip](https://npm.io/package/redzip.md) ^4.0.1
- [pullout](https://npm.io/package/pullout.md) ^5.0.1
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [fullstore](https://npm.io/package/fullstore.md) ^4.0.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.7.2

## Recent versions

- 8.0.0 (latest) — 2026-02-13
- 7.2.0 — 2023-08-09
- 7.1.0 — 2022-04-22
- 7.0.0 — 2022-04-22
- 6.0.2 — 2021-03-16
- 6.0.1 — 2021-03-01
- 6.0.0 — 2021-02-27
- 5.2.1 — 2021-02-21
- 5.2.0 — 2021-02-02
- 5.1.12 — 2021-01-27
- 5.1.11 — 2021-01-26
- 5.1.10 — 2021-01-25
- 5.1.9 — 2021-01-25
- 5.1.8 — 2021-01-25
- 5.1.7 — 2021-01-25
- … 34 more at https://npm.io/package/win32/versions

## README

# win32

Win32 specific functions module for [Cloud Commander](https://cloudcmd.io).

## Install

```
npm install win32 --save
```

## Use

### read(path, options)

Read path and if it's root, return `volumes` on `win32`

### getVolumes()

Get volumes of Windows platform

```js
import {getVolumes} from 'win32';

const volumes = await getVolumes();
```

### unicodify()

Convert `cp437` (or other detected by `prepareCodePage`) to `utf8`;

```js
import {exec} from 'node:child_process';
import {unicodify} from 'win32';

exec('dir')
    .stdout
    .pipe(unicodify())
    .pipe(process.stdout);
```

### prepareCodePage()

Set code page to `65001` which is `utf8`. Will set back originial before exit.

```js
import {prepareCodePage} from 'win32';
prepareCodePage();
```

### isVolume(command)

Determines is `command` is volume:

```js
import {isVolume} from 'win32';

isVolume('c:\\');
// returns on windows
true;
```

### isChangeVolume(command)

Determines is `command` is changing of `volume`:

```js
import {isChangeVolume} from 'win32';

isChangeVolume('c:');
// returns
true;
```

## License

MIT

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