0.0.5 • Published 5 years ago
vercheck v0.0.5
VersionChecker
⚙ 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)!🍻
Usage
Install
# Using Yarn
yarn add vercheck
# Using NPM
npm install vercheckUsage
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.
vcpatchvcminorvcmajorvcprevcpub
Configurations
module.exports = {
}