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

node-viewerjs

v0.7.4

Published

Document viewer component for PDF and ODF documents. Done with just HTML5, CSS3, and JavaScript. Powered by pdf.js and WebODF.

Downloads

83

Readme

ViewerJS for node

Changes

Compared to the original (http://viewerjs.org/) this fork:

  • Will show a warning message if the document is not supported
  • Can play video files (thanks to https://github.com/Ryusei217/ViewerJS)
  • Can show image files (thanks to https://github.com/Ryusei217/ViewerJS)
  • Can be build with node (instead of make/cmake)
  • Is easier to use with node-js/express-js
  • No inline style and inline script tags in index.html
  • Can be found on NPM (node-viewerjs)

How to use with express


var express = require('express'),
    app     = express();

app.use('/viewer', express.static('node_modules/node-viewerjs/release'));

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Original Readme

The viewer uses HTML, CSS, and icons derived from the Mozilla PDF.js project. Some icons are derived from the http://www.iconsweets.com/ project under a Creative Commons Attribution 3.0 Unported license.

ViewerJS

ViewerJS combines a number of excellent open source tools that are built on HTML and javascript. ViewerJS was funded by NLnet foundation and developed by KO GmbH.

The heavy lifting in ViewerJS is done by these awesome projects:

WebODF

WebODF is a JavaScript library created by KO GmbH. It was started by Jos van den Oever at KO and is now developed by a growing team including external collaborators. It makes it easy to add Open Document Format (ODF) support to your website and to your mobile or desktop applications. It uses HTML and CSS to display ODF documents.

PDF.js

PDF.js is a library created by Andreas Gal and others at Mozilla Labs. It is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance.

Examples and more

You can find additional information, some usage guides, and live examples at the project homepage.

License

ViewerJS is a Free Software project. All code is available under the AGPL.

If you are interested in using ViewerJS in your commercial product (and do not want to disclose your sources / obey AGPL), contact KO GmbH for a commercial license.