docs(web): provide deno usage information
This commit is contained in:
parent
4149ed4149
commit
c7ef6de315
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue