1.1.0 • Published 4 years ago

compile-overleaf v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Compile-Overleaf

get latest version of compiled pdf download link from a overleaf read token

generated link can be directly download without cookie/token verification.

Basic Usage

const compileOverleaf = require('compile-overleaf');

try {
    // https://overleaf.com/read/fjspyrhfrsgc
    const token = 'fjspyrhfrsgc';
    const compiled = await compileOverleaf(token);

    /**
     * {
     *  name: 'projectName',
     *  link: {pdf: 'https://compiles.overleaf.com/....'}
     * }
     **/
    console.log(compiled);
} catch (e) {
    /**
     *     status: e.statusCode, <response from server>
     *     stage: e.message, <where error happens>
     **/
    console.log(e);
}

Online Demo

https://compile-overleaf.now.sh/#{token}

e.g. https://compile-overleaf.now.sh/fjspyrhfrsgc

API

https://compile-overleaf.now.sh/api/read?token={token}

e.g. https://compile-overleaf.now.sh/api/read?token=fjspyrhfrsgc