Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/yashha/percollate-api

A basic api to serve percollate as an web api
https://github.com/yashha/percollate-api

api pdf percollate readability

Last synced: about 1 month ago
JSON representation

A basic api to serve percollate as an web api

Lists

README

        

## Description

Public API to transform website content to pdf using the [percollate package](https://github.com/danburzo/percollate) .

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# incremental rebuild (webpack)
$ npm run webpack
$ npm run start:hmr

# production mode
npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## API

- GET: /load.pdf
- Query: mutiple `url` queries possible
other queries are other options of percollate