diff --git a/README.md b/README.md index 115150e..55b8f40 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ npm install webr spidyr webrcli install spongebob ``` +Add an index.js with: + ```javascript const { initSpidyr, library } = require('spidyr'); @@ -44,13 +46,10 @@ const { initSpidyr, mountLocalPackage } = require('spidyr'); await initSpidyr() - await mountLocalPackage("./rfuns"); + const rfuns = await mountLocalPackage("./rfuns"); const hw = await rfuns.hello_world() console.log(hw.values); - - console.log("✅ Everything is ready!"); - })(); ``` \ No newline at end of file