open-html
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

open-html

Node.js CI

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.

Readme

Keywords

none

Package Sidebar

Install

npm i open-html

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

2.1 kB

Total Files

4

Last publish

Collaborators

  • olalonde