From 340406c23476152111f830f50be25340fb4358f5 Mon Sep 17 00:00:00 2001 From: Muhammad Azeez Date: Mon, 16 Oct 2023 17:53:32 +0300 Subject: [PATCH] docs: fix import statements in the README --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 34f3193..3109f36 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,16 @@ npm install @extism/extism@1.0.0-rc1 --save This guide should walk you through some of the concepts in Extism and this JS library. -First you should import `createPlugin` and `ExtismPluginOptions` from Extism: +First you should import `createPlugin` from Extism: ```js // CommonJS -const createPlugin = require("../dist/node/index") +const createPlugin = require("@extism/extism") -// ES Modules -import createPlugin from '../src/deno/mod.ts' +// ES Modules/Typescript +import createPlugin from '@extism/extism'; + +// Deno +import createPlugin from 'https://raw.githubusercontent.com/extism/js-sdk/main/src/deno/mod.ts'; ``` ## Creating A Plug-in @@ -198,4 +201,4 @@ We are shipping an embedded kernel in base64 form in plugin.ts. To update it, yo ``` make update-kernel -``` \ No newline at end of file +```