npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

printify

v1.0.1

Published

Easy HTML print formatting. [Preview here](http://e-conomic.github.io/printify)

Downloads

3

Readme

Printify

Easy HTML print formatting.

Usage

First include printify.js in your HTML page. This exposes a global function called printify. Simply call this on your content div you want formatted for printing

printify('#my-content');

You can add <div class="page-break"></div> in your content to indicate that this is an acceptible place to break the page. Printify will automagically find these breaks and use them if a page break them would be nessary when printing a page. If it decides to use a page-break it will add page-actual-break as a css class to it.

You can also add left, top, right or bottom static html content to every page by specifying these in the option map to printify

printify('#my-content', {
	top: function(pageNumber) {
		return '<div>i am on the top off page #'+pageNumber+'</div>';
	}
})

Protips

To get the best results when printing using phantomjs follow these guidelines

* in headers, footers use padding instead of margin if possible
* when using a tr as a page-break use __2__ in a row like so `<tr class="page-break"></tr><tr class="page-break"></tr>`

Happy printing!