Product Update

Announcing the Official Node.js Package for Doppio.sh

Announcing the Official Node.js Package for Doppio.sh

Announcing the Official Node.js Package for Doppio.sh

Release of the official doppio-nodejs package

a machine that converts html to pdf with a node.js library !!!
a machine that converts html to pdf with a node.js library !!!

We are excited to announce the release of the first official Node.js package for Doppio.sh. This initial release, still in its beta phase, is ready for use as we gear up for the stable 1.0 release.

Module Support: The package is available in both ECMAScript Modules (ESM) and CommonJS (CJS) formats.

TypeScript Ready: Includes type definitions to enhance development experience for TypeScript users.

Lightweight: We love keeping it simple; our package has zero dependencies.


Getting Started:

You can start using the package right away by visiting our GitHub repository: https://github.com/doppio-sh/doppio-nodejs

Or you can also check it on NPM:

https://www.npmjs.com/package/doppio-nodejs


npm install doppio-nodejs

import { Doppio } from 'doppio-nodejs';

const doppioClient = new Doppio(process.env.DOPPIO_API_KEY);

const response = await doppioClient.renderPdfSync({
  pdf: {
    printBackground: true,
  },
  setContent: {
    html: 'PGh0bWw+CjxwPnRlc3Q8L3A+CjwvaHRtbD4=',
    options: {
      waitUntil: ['networkidle0'],
    },
  },
});

console.log(response);


Feedback and Support:

We encourage you to provide feedback or report any issues via email, chat, or directly through GitHub issues. Your input is invaluable as we continue to improve the package.


Future Plans:

The Node.js package is just the beginning! We are committed to expanding our support to other programming languages, aiming to provide a suite of tools that cater to a diverse range of development environments. Stay tuned as we plan to roll out additional packages for more frameworks and/or platforms.

We are excited to announce the release of the first official Node.js package for Doppio.sh. This initial release, still in its beta phase, is ready for use as we gear up for the stable 1.0 release.

Module Support: The package is available in both ECMAScript Modules (ESM) and CommonJS (CJS) formats.

TypeScript Ready: Includes type definitions to enhance development experience for TypeScript users.

Lightweight: We love keeping it simple; our package has zero dependencies.


Getting Started:

You can start using the package right away by visiting our GitHub repository: https://github.com/doppio-sh/doppio-nodejs

Or you can also check it on NPM:

https://www.npmjs.com/package/doppio-nodejs


npm install doppio-nodejs

import { Doppio } from 'doppio-nodejs';

const doppioClient = new Doppio(process.env.DOPPIO_API_KEY);

const response = await doppioClient.renderPdfSync({
  pdf: {
    printBackground: true,
  },
  setContent: {
    html: 'PGh0bWw+CjxwPnRlc3Q8L3A+CjwvaHRtbD4=',
    options: {
      waitUntil: ['networkidle0'],
    },
  },
});

console.log(response);


Feedback and Support:

We encourage you to provide feedback or report any issues via email, chat, or directly through GitHub issues. Your input is invaluable as we continue to improve the package.


Future Plans:

The Node.js package is just the beginning! We are committed to expanding our support to other programming languages, aiming to provide a suite of tools that cater to a diverse range of development environments. Stay tuned as we plan to roll out additional packages for more frameworks and/or platforms.

By Doppio's Team

April 17, 2024