1.0.1 • Published 1 year ago
open-html v1.0.1
open-html
Opens a HTML string in your default web browser. Useful to debug issues when web scraping. This package is meant to be used during development only.
Install
npm install open-html
Usage
const open = require("open-html");
open("<html><head></head><body>just testing</body></html>");
// opts are passed directly to open (see https://github.com/sindresorhus/open)
await open("<html><head></head><body>just testing</body></html>", {
wait: true,
newInstance: true,
});
Tested on Node >v10.