From 4ff6d8884a59d1070fb71c91193c30d2cf99726d Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Thu, 2 Nov 2023 01:57:01 +0100 Subject: [PATCH] docs: add Node usage --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 387de8f..84f644d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,26 @@ ## Usage +### Node + +Add using a package manager, e.g.: npm + +```bash +npm i quickjs-types +``` + +Add types to `tsconfig.json`: + +```json +{ + "compilerOptions": { + "types": ["quickjs-types"] + } +} +``` + +### Git Submodule + Add a submodule to a project, e.g. `types/quickjs`: ```bash