chrome-remote-interface
Advanced tools
Comparing version 0.19.0 to 0.19.1
@@ -21,2 +21,6 @@ #!/usr/bin/env node | ||
function toJSON(object) { | ||
return JSON.stringify(object, null, 4); | ||
} | ||
function inheritProperties(from, to) { | ||
@@ -191,3 +195,3 @@ Object.keys(from).forEach(function (property) { | ||
} | ||
console.log(display(tabs)); | ||
console.log(toJSON(tabs)); | ||
}); | ||
@@ -203,3 +207,3 @@ } | ||
} | ||
console.log(display(tab)); | ||
console.log(toJSON(tab)); | ||
}); | ||
@@ -234,3 +238,3 @@ } | ||
} | ||
console.log(display(info)); | ||
console.log(toJSON(info)); | ||
}); | ||
@@ -246,3 +250,3 @@ } | ||
} | ||
console.log(display(protocol)); | ||
console.log(toJSON(protocol)); | ||
}); | ||
@@ -249,0 +253,0 @@ } |
@@ -12,3 +12,3 @@ { | ||
"homepage": "https://github.com/cyrus-and/chrome-remote-interface", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"repository": { | ||
@@ -15,0 +15,0 @@ "type": "git", |
@@ -180,10 +180,12 @@ chrome-remote-interface [![Build Status](https://travis-ci.org/cyrus-and/chrome-remote-interface.svg?branch=master)](https://travis-ci.org/cyrus-and/chrome-remote-interface) | ||
$ chrome-remote-interface new 'http://example.com' | ||
{ description: '', | ||
devtoolsFrontendUrl: '/devtools/inspector.html?ws=localhost:9222/devtools/page/b049bb56-de7d-424c-a331-6ae44cf7ae01', | ||
id: 'b049bb56-de7d-424c-a331-6ae44cf7ae01', | ||
thumbnailUrl: '/thumb/b049bb56-de7d-424c-a331-6ae44cf7ae01', | ||
title: '', | ||
type: 'page', | ||
url: 'http://example.com/', | ||
webSocketDebuggerUrl: 'ws://localhost:9222/devtools/page/b049bb56-de7d-424c-a331-6ae44cf7ae01' } | ||
{ | ||
"description": "", | ||
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9222/devtools/page/b049bb56-de7d-424c-a331-6ae44cf7ae01", | ||
"id": "b049bb56-de7d-424c-a331-6ae44cf7ae01", | ||
"thumbnailUrl": "/thumb/b049bb56-de7d-424c-a331-6ae44cf7ae01", | ||
"title": "", | ||
"type": "page", | ||
"url": "http://example.com/", | ||
"webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/b049bb56-de7d-424c-a331-6ae44cf7ae01" | ||
} | ||
$ chrome-remote-interface close 'b049bb56-de7d-424c-a331-6ae44cf7ae01' | ||
@@ -190,0 +192,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
949535
15081
843