MozillaReality / fxr-cli

A command-line tool for installing and automating the Firefox Reality virtual-reality browser.
https://www.npmjs.com/package/fxr
Mozilla Public License 2.0
4 stars 3 forks source link

check for automatic updates (and update) whenever `fxr` CLI is run #16

Open cvan opened 6 years ago

cvan commented 6 years ago

here's a useful snippet for using the cli-autoupdate module:

const AutoUpdate = require('cli-autoupdate');

const update = new AutoUpdate(require('./package.json'));
update.on('update', () => console.log('Started update'));
update.on('finish', () => console.log('Finished updating'));