0.1.10 • Published 4 years ago

benx4-sandbox v0.1.10

Weekly downloads
33
License
-
Repository
-
Last release
4 years ago

benx4-sandbox

This module is to create a sandbox in the javascript env but not include the idea how to fetch the code.

Usage:

const fn = sandbox(code,[dependencies keys]);
fn(scopeObj);

notice:

Dependencies keys: There is already some default keys maybe used in the sandbox provided by windows, e.g. location, history, document, console, that is, you can call these object in the BROWSER ENV already. Of course, you also can overwrite it by passing an array which include the functions or object field name you want which exist in the HOST ENV.

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago