Update Cookbook.md

extensions
Volodymyr Shymanskyy 3 years ago committed by GitHub
parent 68af26e4b4
commit 79ae7573f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,6 +36,14 @@ Create `package.json`:
}
```
Create `hello.ts`:
```ts
import "wasi"
import {Console} from "as-wasi"
Console.log('Hello World!\n');
```
Build and run:
```sh
$ npm install

Loading…
Cancel
Save