From 05693be23bf2c36c7334c6f197fa24881047dcbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Juli=C3=A1n=20Merelo=20Guerv=C3=B3s?= Date: Mon, 2 Oct 2023 20:38:09 +0200 Subject: [PATCH] The function is asynchronous So it should be invoked with `await` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec3c9db..ff8a7f1 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ const base64Image = qrcode("bitcoin:ADDRESS?amount=0.5&label=ORDER"); // data:im You can also add a custom size by specifying `size` in the second parameter: ```ts -const fixedSizeImage = qrcode("bitcoin:ADDRESS?amount=0.5&label=ORDER", { size: 500 }); +const fixedSizeImage = await qrcode("bitcoin:ADDRESS?amount=0.5&label=ORDER", { size: 500 }); ``` ### CLI with [DPX](https://github.com/denorg/dpx)