1.0.10 • Published 4 years ago

url-sandbox v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

url-sandbox

Run scripts in an URL, based on JSDOM.

Usage

First, install the package:

npm install url-sandbox

Then, use it like this:

var sandbox=require('url-sandbox');
sandbox.runCode('https://example.com', function(){
  console.log(document.body.innerHTML)
});

This will log the innerHTML of the website. In JSDOM, it would usually only change the location but not the HTML.

1.0.9

4 years ago

1.0.8

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago