Nivedin 00862eb192 feat: secret variables in environments (#3779) 7 месяцев назад
..
src 00862eb192 feat: secret variables in environments (#3779) 7 месяцев назад
.eslintrc.cjs 9e74a8c2e7 chore: lint + bump deps 2 лет назад
.gitignore d2865c637c refactor: bring js-sandbox project to the monorepo 3 лет назад
.prettierignore d2865c637c refactor: bring js-sandbox project to the monorepo 3 лет назад
.prettierrc.cjs 9e74a8c2e7 chore: lint + bump deps 2 лет назад
README.md b18c5e76c9 refactor: check spelling (#2200) 2 лет назад
index.d.ts bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
jest.config.js bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
jest.setup.ts 9e74a8c2e7 chore: lint + bump deps 2 лет назад
node.d.ts bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
package.json bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
tsconfig.json bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
vite.config.ts bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад
web.d.ts bdfa14fa54 refactor(scripting-revamp): migrate `js-sandbox` to `web worker/Node vm` based implementation (#3619) 9 месяцев назад

README.md

# 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
    
  2. Install the package dependencies

    pnpm install
    
  3. Navigate to the package folder

    cd hoppscotch/packages/hoppscotch-js-sandbox
    
  4. 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](https://github.com/hoppscotch) and [contributors](https://github.com/AndrewBastin/hopp-js-sandbox/graphs/contributors).