npm-viewerjs
Version:
Document viewer component for PDF and ODF documents. Done with just HTML5, CSS3, and JavaScript. Powered by pdf.js and WebODF.
20 lines (15 loc) • 583 B
JavaScript
"use strict";
const express = require('express'),
app = express();
app.use('/', express.static('./release'));
app.use('/files', express.static('./test/files'));
app.listen(81);
console.log(`Listening on port 81.
Try one of the following tests:
- http://localhost:81/index.html#/files/pdf-test.pdf
- http://localhost:81/index.html#/files/small.mp4
- http://localhost:81/index.html#/files/small.webm
- http://localhost:81/index.html#/files/test.png
- http://localhost:81/index.html#/files/text.txt
- http://localhost:81/index.html#/files/unknown.zfx
`);