https://github.com/wraith13/wmic-node
wmic( Windows Management Instrumentation Command-line ) wrapper for Node.js
https://github.com/wraith13/wmic-node
nodejs npm-package wmic
Last synced: 6 months ago
JSON representation
wmic( Windows Management Instrumentation Command-line ) wrapper for Node.js
- Host: GitHub
- URL: https://github.com/wraith13/wmic-node
- Owner: wraith13
- License: bsl-1.0
- Created: 2019-06-06T14:24:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T11:05:13.000Z (about 7 years ago)
- Last Synced: 2025-06-09T09:42:24.920Z (about 1 year ago)
- Topics: nodejs, npm-package, wmic
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/wmic-node
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# wmic
wmic( Windows Management Instrumentation Command-line ) wrapper for Node.js
## How to use
```typescript
import wmic from "wmic-node";
const demo = async () =>
{
console.log(`wmic("cpu"): ${JSON.stringify(await wmic("cpu"), null, 4)}`);
};
demo();
```
## Reference
### function
```typescript
function wmic(command: command): Promise<{ [key: string]: string }[]>;
```
### commands
- `"alias"`
- `"baseboard"`
- `"bios"`
- `"bootconfig"`
- `"cdrom"`
- `"computersystem"`
- `"cpu"`
- `"csproduct"`
- `"datafile"`
- `"dcomapp"`
- `"desktop"`
- `"desktopmonitor"`
- `"devicememoryaddress"`
- `"diskdrive"`
- `"diskquota"`
- `"dmachannel"`
- `"environment"`
- `"fsdir"`
- `"group"`
- `"idecontroller"`
- `"irq"`
- `"job"`
- `"loadorder"`
- `"logicaldisk"`
- `"logon"`
- `"memcache"`
- `"memorychip"`
- `"memphysical"`
- `"netclient"`
- `"netlogin"`
- `"netprotocol"`
- `"netuse"`
- `"nic"`
- `"nicconfig"`
- `"ntdomain"`
- `"ntevent"`
- `"nteventlog"`
- `"onboarddevice"`
- `"os"`
- `"pagefile"`
- `"pagefileset"`
- `"partition"`
- `"port"`
- `"portconnector"`
- `"printer"`
- `"printerconfig"`
- `"printjob"`
- `"process"`
- `"product"`
- `"qfe"`
- `"quotasetting"`
- `"rdaccount"`
- `"rdnic"`
- `"rdpermissions"`
- `"rdtoggle"`
- `"recoveros"`
- `"registry"`
- `"scsicontroller"`
- `"server"`
- `"service"`
- `"shadowcopy"`
- `"shadowstorage"`
- `"share"`
- `"softwareelement"`
- `"softwarefeature"`
- `"sounddev"`
- `"startup"`
- `"sysaccount"`
- `"sysdriver"`
- `"systemenclosure"`
- `"systemslot"`
- `"tapedrive"`
- `"temperature"`
- `"timezone"`
- `"ups"`
- `"useraccount"`
- `"voltage"`
- `"volume"`
- `"volumequotasetting"`
- `"volumeuserquota"`
- `"wmiset"`
## How to build
requires: [Node.js](https://nodejs.org/), [TypeScript Compiler](https://www.npmjs.com/package/typescript)
`tsc -P .` or `tsc -P . -w`
### In VS Code
You can use automatic build. Run `Tasks: Allow Automatic Tasks in Folder` command from command palette ( Mac: F1 or Shift+Command+P, Windows and Linux: F1 or Shift+Ctrl+P), and restart VS Code.
## License
[Boost Software License](./LICENSE_1_0.txt)