simplyprint-js
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

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.

Package Sidebar

Install

npm i simplyprint-js

Weekly Downloads

0

Version

2.0.4

License

GPL-3.0

Unpacked Size

53.6 kB

Total Files

8

Last publish

Collaborators

  • zaederx