@cstefflexin/auto-updater
v1.1.1
Published
Update your nodejs app automatically from a remote git repo by checking the package.json version
Downloads
1
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
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
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();
})();