{"id":17911139,"url":"https://github.com/toddtreece/autoupdater","last_synced_at":"2025-04-03T08:35:11.962Z","repository":{"id":57199981,"uuid":"60631400","full_name":"toddtreece/autoupdater","owner":"toddtreece","description":"Make npm modules auto-update themselves","archived":false,"fork":false,"pushed_at":"2016-06-07T21:03:11.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T05:05:40.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddtreece.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-07T17:04:27.000Z","updated_at":"2019-10-22T09:48:50.000Z","dependencies_parsed_at":"2022-09-16T15:01:52.748Z","dependency_job_id":null,"html_url":"https://github.com/toddtreece/autoupdater","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fautoupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fautoupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fautoupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fautoupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddtreece","download_url":"https://codeload.github.com/toddtreece/autoupdater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246968048,"owners_count":20862360,"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-28T19:36:58.125Z","updated_at":"2025-04-03T08:35:11.925Z","avatar_url":"https://github.com/toddtreece.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoupdater\n\nMake your CLI npm modules auto-update themselves.\n\n### Installation\n\nRequires the latest stable version of Node.js. v6.x or higher.\n\n```\n$ npm install cli-autoupdate --save\n```\n\n### Features\n\n- Uses battle-tested [update-notifier](https://npmjs.org/package/update-notifier)\n- Installs new versions in the background\n- Emits `update` event to notify you of the start of an update\n- Emits `finish` event to notify you of the completion of the update (or if no update is needed)\n\n### Usage\n\n```js\nconst AutoUpdate = require('cli-autoupdate');\n\n// load package.json of the package you wish to update\nlet pkg = require('path/to/package.json');\n\nconst update = new AutoUpdate(pkg);\n\nupdate.on('update', () =\u003e console.log('started update'));\nupdate.on('finish', () =\u003e console.log('finished updating'));\n```\n\n### License\n\nMIT © [Vadym Demedes](http://vadimdemedes.com)\nModified Work © [Todd Treece](https://uniontownlabs.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fautoupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddtreece%2Fautoupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fautoupdater/lists"}