justo-plugin-chrome

0.1.1 • Public • Published

justo-plugin-chrome

NPM version Dependency Status devDependency Status

Plugin for Google Chrome.

Proudly made with ♥ in Valencia, Spain, EU.

Install

npm install justo-plugin-chrome

open task

Open Google Chrome:

open(jsOpts, opts)

opts parameter:

  • path (string). The directory where Chrome is. Needed when it is not in the PATH.
  • src (string). The file to open.
  • newWindow (boolean). Open in new window. Default: false.
  • incognito (boolean). Open in new window in incognito mode. Default: false.

On Linux, the task uses google-chrome command. On Windows, chrome.exe.

Example:

const chrome = require("justo-plugin-chrome");

//open in new window
chrome.open("Open Chrome", {
  src: path.join(process.cwd(), "dist/app/index.html"),
  newWindow: true
});

//open in new window in incognito mode
chrome.open("Open Chrome", {
  path: "C:\\Program Files (x86)\\Google\\Chrome\\Application",
  src: path.join(process.cwd(), "dist/app/index.html"),
  incognito: true
});

Package Sidebar

Install

npm i justo-plugin-chrome

Weekly Downloads

3

Version

0.1.1

License

none

Last publish

Collaborators

  • justojs