open-html
v1.0.1
Published
Open an HTML string in your web browser.
Readme
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-htmlUsage
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.
