From b490b7d92b659ee6c89ca7b06afe677c4021bd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=9D?= Date: Mon, 28 Aug 2023 20:56:19 +0800 Subject: [PATCH] doc: Usage add Bun --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index bd39803d..c2f206a7 100755 --- a/README.md +++ b/README.md @@ -108,6 +108,14 @@ async function main() { main() ``` +### Bun + +Starting with [Bun 0.8.1](https://github.com/oven-sh/bun/issues/172#issuecomment-1692930718), resvg-js can be run directly in Bun without any modification to the JS files, and is fully compatible with the syntax in Node.js. + + ```shell + bun example/index.js + ``` + ### Deno Starting with [Deno 1.26.1](https://github.com/denoland/deno/releases/tag/v1.26.1), there is support for running Native Addons directly from Node.js.