0.0.2 • Published 9 months ago

xapier v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

XAPIER

A simple update-checker module.

Logo

Badges

NPMLicanceDiscord
npm.ionpm.ionpm.io

Installation

  $ npm install xapier

Usage

Terminal Usage

  $ xapier <parameter>
ParameterArgsDescription
-c -r & -agithub.com/user/repo <optional: -r> <optional: -a>*Create app's version.
-u1.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