xapier
v0.0.2
Published
A basic update-checker module.
Downloads
13
Maintainers
Readme
XAPIER
A simple update-checker module.
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
@valancess Coder & Developer.
@YiitWT Coder & Developer.