Skip to main content


Laurence MorganLess than 1 minute


Creates a QR code from STDIN


qr is an optional builtin which generates a PNG format image based on the input from STDIN. qr must be run as a method.


<stdin> -> qr -> <stdout>


Write the PNG to disk

» out "Hello, World!" -> qr -> > qr.png

Display PNG in the terminal

» out "Hello, World!" -> qr -> open-image


qr sets stdout's data-type to be "image", which is defined in with the open-image optional builtin. So if you have that disabled then you may have to cast the output in some circumstances.

See Also

  • cast: Alters the data type of the previous function without altering it's output
  • open-image: Renders bitmap image data on your terminal

This document was generated from builtins/optional/qr/qr_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan