node-syncthru-client
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Build Status

node-syncthru-client

A TypeScript port of PySyncThru.

The app currently supports:

  • Toner level (Black, Magenta, Cyan, Yellow)
  • Model name

Example usage

const client = new SyncThruClient("http://my-local-printer");

const syncThruResponse: SyncThruResponse = await client.rawGet(); // gets the raw file returned from the printer
const syncThruModel: SyncThruModel = await client.get(); // gets a custom model object based on printer response

console.log(syncThruResponse.toner_black.remaining) // outputs 28
console.log(syncThruModel.blackTonerLevel()) // outputs 28

Package Sidebar

Install

npm i node-syncthru-client

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

33.2 kB

Total Files

25

Last publish

Collaborators

  • dcop