A library designed to facilitate smarter update notifications and checking for Node.js projects.
dist | ||
docs | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
npmextra.json | ||
package-lock.json | ||
package.json | ||
readme.md | ||
tslint.json | ||
yarn.lock |
smartupdate
update your tools in a smart way
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
smartupdate makes it really easy to notify your tool users about new versions:
import * as smartupdate from 'smartupdate';
// the following command will check npm for a version newer than the specified one.
// It will open the specified URL if a newer version is actually found.
await smartupdate.standardHandler.check(
'lodash',
'1.0.5',
'http://gitzone.gitlab.io/npmts/changelog.html'
);
For further information read the linked docs at the top of this README.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy