chrome-app

Launch a no-UI Chrome App from nodejs.

3 years after

chrome-app

Launch a no-UI Chrome App from nodejs. Extracted from Rod Vagg's morkdown project.

install

npm install --save chrome-app

example

http.createServer(function(request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.end("Hello World\n");
}).listen(null, function(err, res) {
  chromeApp(this.address().address + ':' + this.address().port);
});

api

chromeApp(url, [name])

Given a URL, open a new Chrome window with that URL as an app. The window will close when the process exits, and the process will exit when the window is closed.

name, if given, is a string representing a directory under ~ where Chrome's user data will be stored. In practical terms, it's your app name.

Related Repositories

cog-chrome-app

cog-chrome-app

Cog Chrome App ...

fq777-954-chrome-app

fq777-954-chrome-app

Chrome app for controlling the FQ777-954 drone ...

chrome.app

chrome.app

Haxe/Javascript google chrome app type definitions ...

clock-chrome-app-livereload-example

clock-chrome-app-livereload-example

Fork of https://github.com/GoogleChrome/chrome-app-samples with added live reloa ...

whatsapp-chrome-app

whatsapp-chrome-app

WhatsApp web client packaged in a chrome app ...