All Projects → ZxBing0066 → z-sandbox

ZxBing0066 / z-sandbox

Licence: MIT license
A simple Sandbox implementation for Javascript

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Labels

Projects that are alternatives of or similar to z-sandbox

Flying Sandbox Monster
Sandboxed, Rust-based, Windows Defender Client
Stars: ✭ 158 (+558.33%)
Mutual labels:  sandbox
Firecracker
Secure and fast microVMs for serverless computing.
Stars: ✭ 16,826 (+70008.33%)
Mutual labels:  sandbox
lint-checks
A set of opinionated and useful lint checks
Stars: ✭ 61 (+154.17%)
Mutual labels:  sandbox
Cmulator
Cmulator is ( x86 - x64 ) Scriptable Reverse Engineering Sandbox Emulator for shellcode and PE binaries . Based on Unicorn & Zydis Engine & javascript
Stars: ✭ 197 (+720.83%)
Mutual labels:  sandbox
Ioing
Implement the solutions of performance improvement and componentization for your SPA (single page application) products with this Progressive Web App Development Engine.
Stars: ✭ 224 (+833.33%)
Mutual labels:  sandbox
dockerfiles
🐳 Dockerfiles for Nette Framework. Nette in Docker. (@nette)
Stars: ✭ 15 (-37.5%)
Mutual labels:  sandbox
Sandbox
Nette Framework sandbox project.
Stars: ✭ 143 (+495.83%)
Mutual labels:  sandbox
Sandboxer-Objc
iOS file browser written in Objective-C
Stars: ✭ 31 (+29.17%)
Mutual labels:  sandbox
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+15720.83%)
Mutual labels:  sandbox
react-suspense-sandbox
A sandbox for playing around with React suspense
Stars: ✭ 16 (-33.33%)
Mutual labels:  sandbox
Possumwood
Possumwood is a graph-based procedural authoring tool, in concept not dissimilar to popular CG packages like Houdini, Blender or Maya. It is intended to serve as a sandbox for computer graphics algorithms and libraries, providing a user-friendly and coding-free UI for libraries that would otherwise be inaccessible for an average user.
Stars: ✭ 197 (+720.83%)
Mutual labels:  sandbox
The Powder Toy
Written in C++ and using SDL, The Powder Toy is a desktop version of the classic 'falling sand' physics sandbox, it simulates air pressure and velocity as well as heat.
Stars: ✭ 3,128 (+12933.33%)
Mutual labels:  sandbox
Tools
Combination of different utilities, have fun!
Stars: ✭ 166 (+591.67%)
Mutual labels:  sandbox
Mysql Sandbox
Quick and painless install of one or more MySQL servers in the same host.
Stars: ✭ 176 (+633.33%)
Mutual labels:  sandbox
malware api class
Malware dataset for security researchers, data scientists. Public malware dataset generated by Cuckoo Sandbox based on Windows OS API calls analysis for cyber security researchers
Stars: ✭ 134 (+458.33%)
Mutual labels:  sandbox
Gvisor
Application Kernel for Containers
Stars: ✭ 12,012 (+49950%)
Mutual labels:  sandbox
rhino
Agile Sandbox for analyzing Windows, Linux and macOS malware and execution behaviors
Stars: ✭ 49 (+104.17%)
Mutual labels:  sandbox
unprotect
Unprotect is a python tool for parsing PE malware and extract evasion techniques.
Stars: ✭ 75 (+212.5%)
Mutual labels:  sandbox
java-modern-tech-practice
😎 Java™ modern tech practice sandbox ⏳
Stars: ✭ 43 (+79.17%)
Mutual labels:  sandbox
bpfbox
🐝 BPFBox 📦 Exploring process confinement in eBPF
Stars: ✭ 93 (+287.5%)
Mutual labels:  sandbox

A simple Sandbox implementation for JavaScript

Preview

preview

Demo

Edit quirky-microservice-8oqog

How to use

Install from the npm

npm install z-sandbox
# or
yarn add z-sandbox

Use in your code

import { createSandbox } from 'z-sandbox';

const sandboxOptions = {
    // default: false
    useStrict: false,
    // default: true
    inheritGlobal: true,
    // default: []
    blacklist: ['blacklistContent']
};

const context = {
    blacklistContent: "this content is in the blacklist, you can't get it in the sandbox",
    hello: 'hello z-sandbox'
};

const sandbox = createSandbox(context, sandboxOptions);

sandbox`
    // should be undefined
    console.log(blacklistContent);
    // should be undefined
    console.log(window.blacklistContent);
    // should be undefined
    console.log(this.blacklistContent);
    // should be undefined
    console.log(self.blacklistContent);

    // should be 'hello z-sandbox'
    console.log(hello);

    window.testInject = true;
    // should be true
    console.log(window.testInject);
`;
// should be undefined, false
console.log(window.testInject, 'testInject' in window);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].