You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

on-print

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-print

Provides the ability to run functions before and after a print request.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

OnPrint

Provides the ablity to run functions before and after a print request.

Usage

Initiate OnPrint

var OnPrint = require('on-print')
  , printListener = new OnPrint()

Add a function to run before print

printListener.on('before', fn)

Add a function to run after print

printListener.on('after', fn)

Start watching for print events

printListener.start()

Browser Support

IE 5+, Firefox 6+, Chrome 9+, and Safari 5.1+ (not Opera)

License

BSD

Authors / Contributors

Matthew Harrison-Jones, Ben Gourley

Adapted from: http://tjvantoll.com/2012/06/15/detecting-print-requests-with-javascript/

FAQs

Package last updated on 06 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.