win32 v7.2.0
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
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago