From c7ef6de315e091f011bd20f242f9f5b36a931d23 Mon Sep 17 00:00:00 2001 From: Bedis Nbiba Date: Sun, 11 Feb 2024 09:39:38 +0100 Subject: [PATCH] docs(web): provide deno usage information --- lib/binding_web/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/binding_web/README.md b/lib/binding_web/README.md index 27ac8ba5..f9f621a6 100644 --- a/lib/binding_web/README.md +++ b/lib/binding_web/README.md @@ -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: