James George bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) | 11 месяцев назад | |
---|---|---|
.. | ||
src | 11 месяцев назад | |
.eslintrc.cjs | 3 лет назад | |
.gitignore | 3 лет назад | |
.prettierignore | 3 лет назад | |
.prettierrc.cjs | 3 лет назад | |
README.md | 2 лет назад | |
index.d.ts | 11 месяцев назад | |
jest.config.js | 11 месяцев назад | |
jest.setup.ts | 3 лет назад | |
node.d.ts | 11 месяцев назад | |
package.json | 11 месяцев назад | |
tsconfig.json | 11 месяцев назад | |
vite.config.ts | 11 месяцев назад | |
web.d.ts | 11 месяцев назад |
This package deals with providing a JavaScript sandbox for executing various security sensitive external scripts.
This package makes use of quickjs-emscripten for building sandboxes for running external code on Hoppscotch.
Currently implemented sandboxes:
Clone the repository
git clone https://github.com/hoppscotch/hoppscotch
Install the package dependencies
pnpm install
Navigate to the package folder
cd hoppscotch/packages/hoppscotch-js-sandbox
Try out the demo src/demo.ts
using:
npm run demo
This project follows Semantic Versioning but as the project is still pre-1.0. The code and the public exposed API should not be considered to be fixed and stable. Things can change at any time!
This project is licensed under the MIT License - see LICENSE
for more details.