@cstefflexin/auto-updater
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @cstefflexin/auto-updater

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

35 kB

Total Files

6

Last publish

Collaborators

  • cstefflexin