Skip to content

Commit

Permalink
doc: README update
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFay committed Jun 12, 2024
1 parent 98b8721 commit fb02c35
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ npm install webr spidyr
webrcli install spongebob
```

Add an index.js with:

```javascript
const { initSpidyr, library } = require('spidyr');

Expand All @@ -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!");

})();
```

0 comments on commit fb02c35

Please sign in to comment.