https://github.com/cestef/auto-updater
Update your node apps automatically !
https://github.com/cestef/auto-updater
Last synced: 1 day ago
JSON representation
Update your node apps automatically !
- Host: GitHub
- URL: https://github.com/cestef/auto-updater
- Owner: cestef
- Created: 2021-09-22T21:11:15.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T13:06:13.000Z (over 4 years ago)
- Last Synced: 2024-04-27T12:21:22.304Z (about 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auto-Updater
Update your nodejs app automatically from a remote git repo by checking the package.json version
## Installing
```
yarn add @cstefflexin/auto-updater
```
or
```
npm install @cstefflexin/auto-updater
```
## Using
Typescript
```ts
import AutoGitUpdate, { LogLevel } from "@cstefflexin/auto-updater";
const git = new AutoGitUpdate({
repository: "https://github.com/cstefFlexin/auto-updater",
tempLocation: "/Users/cstef/Desktop",
branch: "main",
test: true,
prompt: true,
logLevel: LogLevel.Info,
});
(async () => {
await git.autoUpdate();
})();
```
Javascript
```js
const { default: AutoGitUpdate, LogLevel } = require("@cstefflexin/auto-updater");
const git = new AutoGitUpdate({
repository: "https://github.com/cstefFlexin/auto-updater",
tempLocation: "/Users/cstef/Desktop",
branch: "main",
test: true,
prompt: true,
logLevel: LogLevel.Info,
});
(async () => {
await git.autoUpdate();
})();
```