# adam-print-client

> this client print libaray for adam print service. I hope adam team helpfull when use this library. 😊😊😊 😘😘😘

Latest version **1.0.3** (published 2020-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install adam-print-client
pnpm add adam-print-client
yarn add adam-print-client
bun add adam-print-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-01-06 |
| First published | 2020-01-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | didin1453fatih |
| Maintainers | didin1453fatih |

## Links

- npm: https://www.npmjs.com/package/adam-print-client
- npm.io page: https://npm.io/package/adam-print-client

## Dependencies (3)

- [btoa](https://npm.io/package/btoa.md) ^1.2.1
- [axios](https://npm.io/package/axios.md) ^0.19.0
- [print-js](https://npm.io/package/print-js.md) ^1.0.63

## Recent versions

- 1.0.3 (latest) — 2020-01-06
- 1.0.2 — 2020-01-06
- 1.0.1 — 2020-01-06
- 1.0.0 — 2020-01-06

## README

#Adam Print Client
This client print library for adam print service. 
I hope adam team helpful when use this library. 😊😊😊 😘😘😘

#Usage

For use this libaray, install using
```
npm i adam-print-client
```

and then you must include this library like this

```
import {printPdf} from "adam-print-client"
```
And call this library with
```
printPdf(URL, data, finishCallback)
```

##Example
```
try {
    var dataPrint=await axios.post("/api/v1/pemeriksaan_pasien/input_hasil/print", this.submitPrint)
    printPdf('http://192.153.2.111/published/view_pdf', dataPrint.data,()=>{
        window.alert('finish')
    })
} catch (error) {
// alert('sistem print error '+error.message)
}    
```

##Description
| Params         |           Description           |                 Example                 |
|----------------|:-------------------------------:|:---------------------------------------:|
| URL            |           String path           | http://192.153.2.111/published/view_pdf |
| DATA           |           JSON Object           |        Javascript Object data {}        |
| finishCallback | Callback when print is finished |         ()=>{ /***finish**/  }          |

---
_Source: https://npm.io/package/adam-print-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
