Package Exports
- npm-update
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-update) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
npm-update
npm update
Installment
$ npm i npm-update --saveUsage
const update = require('npm-update')
const pkg = require('../package.json')
(async () => {
const { needUpdate } = await update({ pkg })
if (needUpdate) return
// do some stuff
})()If needUpdate is true, outlog this message:
╭─────────────────────────────────────────╮
│ │
│ new version x.y.z found │
│ │
│ run npm i name@x -g │
│ │
╰─────────────────────────────────────────╯
Contributors
xudafeng |
brunoyang |
zhangyuheng |
|---|
This project follows the git-contributor spec, auto upated at Tue Jun 26 2018 22:22:45 GMT+0800.
License
The MIT License (MIT)