1.1.1 • Published 3 years ago

@cstefflexin/auto-updater v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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();
})();