Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Update js-sandbox README

Andrew Bastine0f88e01f924
diff --git a/packages/hoppscotch-js-sandbox/README.md b/packages/hoppscotch-js-sandbox/README.md
index 77b12a755..642449d6a 100644
--- a/packages/hoppscotch-js-sandbox/README.md
+++ b/packages/hoppscotch-js-sandbox/README.md
@@ -15,36 +15,35 @@
This package deals with providing a JavaScript sandbox for executing various security sensitive external scripts.
-## Usage
-
-Install the [npm package](https://www.npmjs.com/package/@hoppscotch/js-sandbox).
-
-```
-npm install --save @hoppscotch/js-sandbox
-```
-
## How does this work?
This package makes use of [quickjs-empscripten](https://www.npmjs.com/package/quickjs-emscripten) for building sandboxes for running external code on Hoppscotch.
Currently implemented sandboxes:
- Hoppscotch Test Scripts
+- Hoppscotch Pre Request Scripts
## Development
1. Clone the repository
```
-git clone https://github.com/hoppscotch/hopp-js-sandbox
+git clone https://github.com/hoppscotch/hoppscotch
```
2. Install the package dependencies
```
-npm install
+pnpm install
```
-3. Try out the demo [`src/demo.ts`](https://github.com/hoppscotch/hopp-js-sandbox/blob/main/src/demo.ts) using:
+3. Navigate to the [package folder](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-js-sandbox)
+```
+cd hoppscotch/packages/hoppscotch-js-sandbox
+```
+
+
+4. Try out the demo [`src/demo.ts`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-js-sandbox/src/demo.ts) using:
```
npm run demo