npm install print-mini-html> A plugin for printing partial pages
You will need Node.js installed on your system.
```
npm install --save print-mini-html`
import printHTML from 'print-mini-html';
printHTML(document.body.cloneNode(true));
printHTML('
printHTML('
`
Or manually download and link printHTML.js in your HTML, It can also be downloaded via UNPKG:
``
printHTML(html, title, cssText, delay, callback);
` | field name | type | must | description |
| --------------------- | ------- | ---- | ----------------------------------------- |
| html | HTMLElement \| DOMString | true | DOM to print |
| title | DOMString | false | Default document.title |
| cssText | DOMString | false | add styles |
| delay | Number | false | delay print |
| callback | Function | false | print callback |
return
`
function force print
``