{"id":16758484,"url":"https://github.com/kessler/node-local-update-server","last_synced_at":"2025-10-11T22:37:42.537Z","repository":{"id":142618775,"uuid":"47868797","full_name":"kessler/node-local-update-server","owner":"kessler","description":"A tool that creates a local update server","archived":false,"fork":false,"pushed_at":"2015-12-12T07:26:12.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T08:12:40.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kessler.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-12T07:20:10.000Z","updated_at":"2023-09-19T13:55:09.000Z","dependencies_parsed_at":"2023-03-15T03:33:09.548Z","dependency_job_id":null,"html_url":"https://github.com/kessler/node-local-update-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-local-update-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-local-update-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-local-update-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-local-update-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/node-local-update-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243842073,"owners_count":20356601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T04:05:29.759Z","updated_at":"2025-10-11T22:37:37.501Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# local-update-server\n\nA tool that creates a local update server, Useful for local testing and such. \n\nUsing 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. \n\n[![npm status](http://img.shields.io/npm/v/update-mock-server.svg?style=flat-square)](https://www.npmjs.org/package/update-mock-server) \n\n## CLI Tool\n\n`npm install -g local-update-server`\n\n```bash\nlocal-update-server --update-url=\"http://blablabla.com/version\" --update-version=\"1.2.3\" --file=\"/some/path/to/file\" --fileUrl=\"http://blablabla.com/download\"\n```\n\n## API\n`npm install --save local-update-server`\n\n```javascript\nvar localUpdateServer = require('local-update-server')\nvar parseUrl = require('url').parse\n\nvar opts = {\n    updateUrl: parseUrl('http://blabla.com:9090/version'),\n    fileUrl: parseUrl('http://foobar.com/download'),\n    file: '/path/to/file',\n    updateVersion: '0.0.1'\n}\n\nvar domains = [opts.fileUrl.hostname, opts.updateUrl.hostname]\n\nindex.dnsTakeover(domains)\n\nprocess.on('exit', function () {\n    index.dnsRemove(domains)\n})\n\nindex.app(opts, function (err) {\n    if (err) return console.error(err)\n    console.log('ready')\n})\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © Yaniv Kessler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-local-update-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fnode-local-update-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-local-update-server/lists"}