atom-package-upgrader
v2.0.5
Published
Auto-Updater for atom packages
Downloads
11
Readme
Atom-Package-Upgrader
Atom-Package-Upgrader is an npm module for you to use in your atom packages. It makes sure that the user always has the latest and greatest version of your package installed. It will query the repos for any upgrades, if available, will install them for the user and show a nice notification along the way.
Note: You should always have a config in your package that lets users disable auto-updates.
Example
if (atom.config.get('my-package.autoUpdate')) {
const subscription = require('atom-package-upgrader').upgrade()
// On deactivate:
subscription.dispose()
}
API
function upgrade(name = null): Disposable
If no name is provided to upgrade, it tries to guess based on __dirname
.
LICENSE
This project is licensed under the terms of MIT license, See the license file or contact me for more info.