0.1.5 • Published 5 years ago

tiny-print v0.1.5

Weekly downloads
40
License
ISC
Repository
-
Last release
5 years ago

Installation

TinyPrint is available as an npm package.

npm install tiny-print --save

Usage

import tinyPrint from "tiny-print";

tinyPrint(element, {
  scanStyles: BOOLEAN, // Default: true, scans computed styles from dom for that specific node, recommended for fixed height/width 
  scanHTML: BOOLEAN, // Default: false, scans styles and links from current html page, disable scanStyles if scanHTML is enabled
  importStyles: ARRAY, // Default: [], imports external stylesheet eg: https://cdn.com/style.css
  cssStyle: STRING, // Default: '', custom css styles eg; `.title { font-size: 14px; }`
  hidePageRule: BOOLEAN // Default: false, hide print page rule i.e page title, footer etc
});

Demo

Please refer the DEMO.

Contributing

We'd greatly appreciate any contribution you make. :D

License

This project is licensed under the terms of the MIT license.