# npm-auto-update

> check for update and update npm dependencies

Latest version **1.1.3** (published 2017-01-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-auto-update
pnpm add npm-auto-update
yarn add npm-auto-update
bun add npm-auto-update
```

## 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 | 1.1.3 |
| Published | 2017-01-11 |
| First published | 2017-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tristan Teufel |
| Maintainers | firsttris |
| Keywords | npm, auto, update |

## Links

- npm: https://www.npmjs.com/package/npm-auto-update
- Repository: https://github.com/firsttris/npm-auto-update
- Homepage: https://github.com/firsttris/npm-auto-update#readme
- Issues: https://github.com/firsttris/npm-auto-update/issues
- npm.io page: https://npm.io/package/npm-auto-update

## Dependencies (1)

- [rimraf](https://npm.io/package/rimraf.md) ^2.5.4

## Recent versions

- 1.1.3 (latest) — 2017-01-11
- 1.1.2 — 2017-01-11
- 1.1.1 — 2017-01-11
- 1.1.0 — 2017-01-11
- 1.0.9 — 2017-01-11
- 1.0.8 — 2017-01-11
- 1.0.7 — 2017-01-11
- 1.0.6 — 2017-01-11
- 1.0.5 — 2017-01-11
- 1.0.4 — 2017-01-11
- 1.0.3 — 2017-01-11
- 1.0.2 — 2017-01-11
- 1.0.1 — 2017-01-11
- 1.0.0 — 2017-01-11

## README

# npm-auto-update
:dizzy: JavaScript interface to programmically update your application from npm

### Features
Checks if the version on npm is newer then you'r local version (from package.json).
if true its possible todo a global update

#### Constructor
Pass a log object e.g. console
```
const npmAutoUpdate = new (require('npm-auto-update'))(console);
npmAutoUpdate.checkForUpdate((error, result) => {
            if(result) {
                this.npmAutoUpdate.updatePackage((error, result) => {
                });
            }
});
```

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