# cli-autoupdate

> Make your module auto-update itself

Latest version **2.0.4** (published 2016-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install cli-autoupdate
pnpm add cli-autoupdate
yarn add cli-autoupdate
bun add cli-autoupdate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2016-06-07 |
| First published | 2016-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | toddtreece |
| Keywords | auto-update, update, cli |

## Links

- npm: https://www.npmjs.com/package/cli-autoupdate
- Repository: https://github.com/toddtreece/autoupdater
- Homepage: https://github.com/toddtreece/autoupdater#readme
- Issues: https://github.com/toddtreece/autoupdater/issues
- npm.io page: https://npm.io/package/cli-autoupdate

## Dependencies (1)

- [update-notifier](https://npm.io/package/update-notifier.md) ^0.5.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.4 (latest) — 2016-06-07
- 2.0.3 — 2016-06-07
- 2.0.2 — 2016-06-07
- 2.0.1 — 2016-06-07
- 2.0.0 — 2016-06-07

## README

# autoupdater

Make your CLI npm modules auto-update themselves.

### Installation

Requires the latest stable version of Node.js. v6.x or higher.

```
$ npm install cli-autoupdate --save
```

### Features

- Uses battle-tested [update-notifier](https://npmjs.org/package/update-notifier)
- Installs new versions in the background
- Emits `update` event to notify you of the start of an update
- Emits `finish` event to notify you of the completion of the update (or if no update is needed)

### Usage

```js
const AutoUpdate = require('cli-autoupdate');

// load package.json of the package you wish to update
let pkg = require('path/to/package.json');

const update = new AutoUpdate(pkg);

update.on('update', () => console.log('started update'));
update.on('finish', () => console.log('finished updating'));
```

### License

MIT © [Vadym Demedes](http://vadimdemedes.com)
Modified Work © [Todd Treece](https://uniontownlabs.org)

---
_Source: https://npm.io/package/cli-autoupdate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
