GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ajainvivek/tiny-print: 🖨️ Tiny print is a tiny javascript library to help printing HTML element.

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

TinyPrint

A tiny javascript print library (less than 1kb) to help printing targeted HTML element.

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.

About

🖨️ Tiny print is a tiny javascript library to help printing HTML element.

tiny-print.netlify.com/

Topics

htmlprint-htmlprint-jstiny-print

Resources

Readme

Security policy

Security policy
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.