# cupa **Repository Path**: oodolabs/cupa ## Basic Information - **Project Name**: cupa - **Description**: Common Unix Printing Assistant - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cupa > Common Unix Printing Assistant ## Get Printer Status ```js import {createAssistant} from "cupa"; (async () => { const assistant = createAssistant('usb:///?serial='); console.log('- Status'); console.log(await assistant.status()); })(); ``` The result ```json5 // --> { inklevel: 95, // percent drumleft: 11893, // papers left to print state: { reasons: [ 'media-low', 'sleep' ], // state reason display: 'Paper Low Tray 1', // display message }, } ``` __State Reasons__ `State Reasons` is a set of reason belows: * `ready` * `pause` * `wait` * `toner-low` * `ink-low` * `job-cancel` * `printing` * `sleep` * `toner-empty` * `ink-empty` * `media-jam` Paper Jam * `media-empty` Paper empty * `media-low` Paper low * `` Empty state * `` Unknown reason in code form.