docs(web): provide deno usage information

This commit is contained in:
Bedis Nbiba 2024-02-11 09:39:38 +01:00 committed by GitHub
parent 4149ed4149
commit c7ef6de315
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,14 @@ const Parser = require('web-tree-sitter');
Parser.init().then(() => { /* the library is ready */ });
```
You can use this module with [deno](https://deno.land/):
```js
import Parser from "npm:web-tree-sitter";
await Parser.init();
// the library is ready
```
### Basic Usage
First, create a parser: