docs: update info about WASM web-demo example

This commit is contained in:
rzmk 2024-06-20 17:11:28 -04:00
parent 0648673c46
commit 9bd3090545
No known key found for this signature in database
7 changed files with 11 additions and 3 deletions

View file

@ -43,7 +43,9 @@ bun install czv
Or use `npm`, `pnpm`, or `yarn` instead of `bun`.
```js
The following example is written in TypeScript:
```ts
import init, * as czv from "czv";
// Must run `await init()` or `initSync()` first for web use
await init();
@ -53,7 +55,7 @@ apple,2.50
banana,3.00
strawberry,1.50`;
const output = czv.rowCount({
const output: number = czv.rowCount({
file_data: data,
include_header_row: true,
});