Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 626 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 626 Bytes

PupperFit

A simple pdf http server.

How it works

Creates a http server that can generate complex pdf pages with full html5/css3 and javascript functionality with lower memory and time.

Installation

    yarn install pupperfit;
    // or 
    npm install pupperfit;

Running

    node index.js // Makes it be online on localhost:3001

Creating pdf

Do a simple http request with your preferred http client to http://localhost:3001 containing the desired html page.

    curl -X POST http://localhost:3001 
   -H "Content-Type: text/plain"
   -d 'Hello world :)'