hoppscotch/packages/hoppscotch-js-sandbox
Andrew Bastin cbe3e14b47
refactor: versioning and migration mechanism for public data structures (#3457)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
2023-11-02 18:54:16 +05:30
..
src feat: add toInclude() function (#2234) 2022-04-05 15:57:14 +05:30
.eslintrc.cjs chore: lint + bump deps 2021-11-04 18:23:50 +05:30
.gitignore refactor: bring js-sandbox project to the monorepo 2021-09-25 01:01:22 +05:30
.prettierignore refactor: bring js-sandbox project to the monorepo 2021-09-25 01:01:22 +05:30
.prettierrc.cjs chore: lint + bump deps 2021-11-04 18:23:50 +05:30
jest.config.js refactor: versioning and migration mechanism for public data structures (#3457) 2023-11-02 18:54:16 +05:30
jest.setup.ts chore: lint + bump deps 2021-11-04 18:23:50 +05:30
package.json chore: set web and common versions to 2023.4.0 and remove workspace package version specifiers 2023-04-09 21:42:25 +05:30
README.md refactor: check spelling (#2200) 2022-03-25 16:49:28 +05:30
tsconfig.json Feature: hopp-cli in TypeScript (#2074) 2022-03-28 13:56:15 +05:30
tsup.config.ts Feature: hopp-cli in TypeScript (#2074) 2022-03-28 13:56:15 +05:30

Hoppscotch JavaScript Sandbox ALPHA

This package deals with providing a JavaScript sandbox for executing various security sensitive external scripts.

How does this work?

This package makes use of 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/hoppscotch
  1. Install the package dependencies
pnpm install
  1. Navigate to the package folder
cd hoppscotch/packages/hoppscotch-js-sandbox
  1. Try out the demo src/demo.ts using:
npm run demo

Versioning

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!

License

This project is licensed under the MIT License - see LICENSE for more details.



built with ❤︎ by the Hoppscotch Team and contributors.