
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
npm-update
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
npm update
$ npm i npm-update --save
const npmUpdate = require('npm-update')
const pkg = require('../package.json')
(async () => {
const { needUpdate } = await npmUpdate({ pkg });
if (needUpdate) return;
// do some stuff
})();
If needUpdate
is true
, print message:
╭─────────────────────────────────────────╮
│ │
│ new version x.y.z found │
│ │
│ run npm i name@x -g │
│ │
╰─────────────────────────────────────────╯
const {
needUpdate, // return true | false
version: latestVersion, // return version if needUpdate
} = await update(options);
Object
package.json object.string
registry host, default is registry.npmjs.org.number
request registry timeout, default is 3000ms.string
base version for comparing, can be npm tag or npm version, default is latest.boolean
if slient is true, will not print message, default is false.xudafeng | zhangyuheng | brunoyang |
---|
This project follows the git-contributor spec, auto updated at Fri Nov 04 2022 13:38:18 GMT+0800
.
The MIT License (MIT)
FAQs
npm update
The npm package npm-update receives a total of 4,126 weekly downloads. As such, npm-update popularity was classified as popular.
We found that npm-update demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.