⚙ A simple util to quickly setup auto update checker for your application
VersionChecker is a simple util for periodically comparing your user's local installed version and your latest published (latest) version, notice user with your changelogs. Fully configurable and low deps (only relies on semver
)!🍻
Install
# Using Yarn
yarn add vercheck
# Using NPM
npm install vercheck
Usage
API
const { checkUpdate } = require('vercheck')
async function main() {
await checkUpdate(path.join(__dirname, 'package.json'))
/** your other businessLogic */
}
CLI commands
You can run certain commands in cli via yarn ${command}
or npm run ${command}
, provide your changelog messages, the command will add your message to package changelog and then bump up current version.
vcpatch
vcminor
vcmajor
vcpre
vcpub
module.exports = {
}