npm-updates:从npm存储库发出更新事件

时间:2021-02-03 19:02:32
【文件属性】:
文件名称:npm-updates:从npm存储库发出更新事件
文件大小:40KB
文件格式:ZIP
更新时间:2021-02-03 19:02:32
npm registry node npmJavaScript npm更新 从npm存储库或任何节点模块存储库发出更新事件。 用法 const NPM = require ( 'npm-updates' ) ; const npm = new NPM ( ) ; npm . on ( 'update' , ( info ) => { console . log ( 'package' , info . name , 'was updated to v' + info . version ) ; } ) ; npm . on ( 'new' , ( info ) => { console . log ( 'new module!' , info .
【文件预览】:
npm-updates-master
----.github()
--------workflows()
----lib()
--------index.js(4KB)
----.travis.yml(183B)
----example()
--------updates.js(227B)
----LICENSE(1KB)
----test()
--------assets()
--------main-test.js(10KB)
----README.md(2KB)
----.gitignore(22B)
----package-lock.json(106KB)
----package.json(883B)

网友评论