0.0.1-alpha.4 • Published 3 years ago
coolmaster-client v0.0.1-alpha.4
CoolMasterNet Client
CoolMasterNet API Client for TypeScript

Installation
npm install coolmaster-clientUsage
import { CoolMasterNetClient } from 'coolmaster-client'
const client = CoolMasterNetClient.create({
host: '192.168.1.111',
port: 1234, // Optional, defaults to `10103`
secure: true, // Optional, defaults to `false`
device: '443B960055F0',
})
const results = await client.ls2()Using Environment Variables
Instead of using the ConnectionConfigs, you can opt-in to use environment variables.
The lookup precedence is as follows:
- Values found in the
ConnectionConfigs. - Environment variable equivalent.
- Default values (if applicable).
| Name | Default |
|---|---|
COOLMASTER_CLIENT_HOST | undefined |
COOLMASTER_CLIENT_PORT | 10103 |
COOLMASTER_CLIENT_SECURE | false |
COOLMASTER_CLIENT_DEVICE | undefined |
0.0.1-alpha.4
3 years ago
0.0.1-alpha.3
3 years ago
0.0.1-alpha.2
3 years ago
0.0.1-alpha.1
3 years ago
0.0.1-alpha.0
3 years ago