如何在后端使用它(Node Js)

How to use this in backend (Node Js)

我正在使用来自 https://www.npmjs.com/package/qr-code-styling-node 的 qrstyling 包,但是当我阅读它们的用法时,我只看到人们必须使用其 cdn 的前端。有没有办法在后端(NodeJs)使用它?

有一节介绍如何在 Node js 中使用它。它说:

You can use this on a node server by passing through the node-canvas or jsdom object depending if your creating a non-svg or svg respectively. You must pass both if using imageOptions.saveAsBlob.

请查找'Node Support'部分