Skip to content

coronacheck-web-pdf-tools 4.1.5

Install from the command line:
Learn more about npm packages
$ npm install @minvws/coronacheck-web-pdf-tools@4.1.5
Install via package.json:
"@minvws/coronacheck-web-pdf-tools": "4.1.5"

About this version

nl-covid19-coronacheck-web-pdf-tools

This is a JavaScript library for generating PDFs for (static) Dutch domestic and european signed proofs.

Usage

Use this repository's git: URL to install the package in your project:

npm install "https://github.com/minvws/nl-covid19-coronacheck-web-pdf-tools.git#VERSION"

Replace VERSION with the tag name of the latest release.

In Node.js

Usage in Node.js requires polyfills for atob and DOMParser. Be sure to polyfill these before requireing or import()ing from nl-covid19-coronacheck-web-pdf-tools.

E.g. using jsdom:

const JSDOM = require("jsdom").JSDOM;
const jsdomWindow = new JSDOM().window;
global.atob = jsdomWindow.atob;
global.DOMParser = jsdomWindow.DOMParser;

const { parseProofData, getDocument } = require("nl-covid19-coronacheck-web-pdf-tools");

Note: when using ES modules, it's important to use the async import(), as static imports would cause the code to be evaluated at load time, before the polyfills are installed.

Upgrade

Please refer to the upgrade guide

License

This project is licensed under the EUPL-1.2. See LICENSE.

Details


Assets

  • coronacheck-web-pdf-tools-4.1.5.tgz

Download activity

  • Total downloads 653
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all