Skip to content
/ xapier Public

A basic update-checker module for nodejs projects.

License

Notifications You must be signed in to change notification settings

YiitWT/xapier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAPIER

A simple update-checker module.

Logo

Badges

NPM Licance Discord

Installation

  $ npm install xapier

Usage

Terminal Usage

  $ xapier <parameter>
Parameter Args Description
-c -r & -a github.com/user/repo <optional: -r> <optional: -a> *Create app's version.
-u 1.0.1 *Update your app's version. (Default version 1.0.0)

How it works

Example: If you write xapier -c githubadress -r -a It'll automaticly install the latest version of your app but you don't have to use -r & a.

This one is so basic. If you write xapier -u <new version that newer than oldest> it'll change the app's version. If you want more example:

Before you wrote command

{
    "version": "1.0.0"
}

After

{
    "version": "1.0.1"
}

Update Check Usage

const xapier = require("xapier")


xapier.Check( // All of these are optional
    "yourrelase.zip",//file
    true,//Auto update after download 
    "node ."//The command to run after updated
    pid // PID Number with number
)

How it works?

If you enter these informations, First it'll close the application, than download latest relase from your github page than install files. Finally it'll run the command you wrote.

What if i dont enter optional choices?

If the current version is older than latest than it'll direct you to github page.

All functions

    xapier.Ignore(); // Just returns

Feedback & Issue

If you wanna report an issue or smth. you can contact us via Discord or you can commit a Issue on GitHub

Credits

About

A basic update-checker module for nodejs projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published