2.0.4 • Published 10 months ago

simplyprint-js v2.0.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
10 months ago

simplyprint-js

A package to more simply print out a section of html or save as a pdf.

npm install simplyprint-js
//Global.d.ts
decalre module '*.css' //or declare module '*.module.css'
import { Printer } from 'simplyprint-js'
import css from 'scrapbook.css' //or import css from 'scrapbook.module.css'

const cssArray = [css]
var printer = new Printer('#scrapbook', cssArray)
printer.print()

This then brings up a printing menu from whichever browser is being used. A pdf can be downloaded from this menu if needed.

2.0.4

10 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago