1.0.10 • Published 3 years ago

url-sandbox v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago