Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.99 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.99 KB

NPM Build Status

QR Code for Blackprint

Blackprint nodes for creating QR Code

Import this nodes from URL

Please specify the version to avoid breaking changes.

Blackprint.loadModuleFromURL([
  'https://cdn.jsdelivr.net/npm/@blackprint/[email protected]/dist/nodes-qrcode.mjs'
], {
  // Turn this on if you want to load .sf.js, and .sf.css
  // only with single .mjs
  loadBrowserInterface: true // set to "false" for Node.js/Deno
});

Development URL

You can use this link to load unpublished nodes and still under development on GitHub. https://cdn.jsdelivr.net/gh/Blackprint/nodes-qrcode@dist/nodes-qrcode.mjs

Replace dist with your latest commit hash (from dist branch) to avoid cache from CDN.

Local module server for development

$ cd /your/project/folder
$ git clone --depth 1 --recursive https://github.com/Blackprint/nodes-qrcode.git .
$ pnpm i
$ npm start
 >> [Browsersync] Access URLs:
 >> -----------------------------------
 >> Local: http://localhost:6789
 >> -----------------------------------

Copy the http://localhost:6789 URL and go to online Blackprint Editor.
Go to development mode, and paste it to remote module server. Then refresh the page, after that you can modify the code from your favorite text editor. The compiler will watch every changes inside this folder by following the configuration in blackprint.config.js.

Before opening .sf file, please install the syntax highlighter for your text editor.

BPIC = Blackprint Interface Component

brave_7NcrWUt66n

License

MIT