x-update

a self update script

Usage no npm install needed!

<script type="module">
  import xUpdate from 'https://cdn.skypack.dev/x-update';
</script>

README

x-update

How to use

var xUpdate = require('x-update');
xUpdate({
  root: __dirname,  // the root path of your project
  install: void 0  // the install command, default to be "npm install"
}).then(function() {
  process.exit(-1);   // do whatever you want
});