From 29026afe0b999bc3f55dadf11e15b915b9072b10 Mon Sep 17 00:00:00 2001 From: JoeMcGuire Date: Thu, 22 Sep 2022 17:55:47 +0200 Subject: [PATCH] :memo: Fix node code example - Change import for const so it executes without an error --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66c38b8..fc39109 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Get your API Key Run: ```javascript -import banana = require("@banana-dev/banana-dev") +const banana = require("@banana-dev/banana-dev") const apiKey = "demo" // "YOUR_API_KEY" const modelKey = "carrot" // "YOUR_MODEL_KEY" @@ -76,4 +76,4 @@ Both the main package code in module and the testing code are compiled with type npx tsc -w in test dir you can use JS or import the js sdk from test script -modify index.ts to contain the code snippet above. \ No newline at end of file +modify index.ts to contain the code snippet above.