1.0.10 • Published 5 years ago

url-sandbox v1.0.10

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

5 years ago

1.0.8

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago