local-update-server
A tool that creates a local update server, Useful for local testing and such.
Using this tool one defines a version and a download http endpoints, the tool then takes over the domains used (hosts file) and serves the content.
CLI Tool
npm install -g local-update-server
local-update-server --update-url="http://blablabla.com/version" --update-version="1.2.3" --file="/some/path/to/file" --fileUrl="http://blablabla.com/download"
API
npm install --save local-update-server
var localUpdateServer = var parseUrl = parse var opts = updateUrl: fileUrl: file: '/path/to/file' updateVersion: '0.0.1' var domains = optsfileUrlhostname optsupdateUrlhostname index process index
license
MIT © Yaniv Kessler