7.2.0 • Published 9 months ago

win32 v7.2.0

Weekly downloads
905
License
MIT
Repository
github
Last release
9 months ago

win32

Win32 specific functions module for Cloud Commander.

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

const win = require('win32');

const volumes = await win.getVolumes();

unicodify()

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

const win = require('win32');
const {exec} = require('child_process');

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

prepareCodePage()

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

const win = require('win32');
win.prepareCodePage();

isVolume(command)

Determines is command is volume:

const win = require('win32');
win.isVolume('c:\\');
// returns on windows
true;

isChangeVolume(command)

Determines is command is changing of volume:

const win = require('win32');
win.isChangeVolume('c:');
// returns
true;

License

MIT

7.2.0

9 months ago

7.1.0

2 years ago

7.0.0

2 years ago

6.0.2

3 years ago

6.0.1

3 years ago

5.2.1

3 years ago

6.0.0

3 years ago

5.2.0

3 years ago

5.1.12

3 years ago

5.1.11

3 years ago

5.1.10

3 years ago

5.1.9

3 years ago

5.1.8

3 years ago

5.1.7

3 years ago

5.1.6

3 years ago

5.1.5

3 years ago

5.1.4

3 years ago

5.1.3

3 years ago

5.1.2

3 years ago

5.1.1

3 years ago

5.1.0

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.0.1

4 years ago

4.0.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.9.12

7 years ago

0.9.11

9 years ago

0.9.10

9 years ago

0.9.9

9 years ago

0.9.8

9 years ago

0.9.7

9 years ago

0.9.6

10 years ago

0.9.5

10 years ago

0.9.4

10 years ago

0.9.3

10 years ago

0.9.2

10 years ago