분류
Nodejs
update-notifier - CLI 응용 프로그램에 대한 알림을 업데이트합니다.
본문
https://github.com/yeoman/update-notifier
const updateNotifier = require('update-notifier'); const pkg = require('./package.json'); // Checks for available update and returns an instance const notifier = updateNotifier({pkg}); // Notify using the built-in convenience method notifier.notify(); // `notifier.update` contains some useful info about the update console.log(notifier.update); /* { latest: '1.0.1', current: '1.0.0', type: 'patch', // Possible values: latest, major, minor, patch, prerelease, build name: 'pageres' } */
- 이전글ascii-charts - 터미널의 ASCII 가로 막 대형 차트 19.03.07
- 다음글drawille - 유니 코드 점자 문자로 터미널을 그립니다. 19.03.07