
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
update-pkgjson
Advanced tools
模块
getNextVersion 获得下一个版本getUpdatedPackage 获取更新版本后的package内容getPublishPackage 获取发布包的内容npm install update-pkgjson
获取下一个版本
const { getNextVersion } = require('update-pkgjson')
const pkg = require('./package.json')
console.info(getNextVersion(pkg.version))
获取更新版本后的package内容
const { getUpdatedPackage } = require('update-pkgjson')
const pkg = require('./package.json')
console.info(getUpdatedPackage(pkg))
getPublishPackage
const { getPublishPackage } = require('update-pkgjson')
const pkg = require('./package.json')
const newPkg = getUpdatedPackage(pkg)
getPublishPackage(newPkg, {
main: 'src/index.js',
homepage: '',
repository: {
type: 'git',
url: ''
},
bin: {
'自定义命令': 'src/index.js'
}
})
FAQs
**模块**
We found that update-pkgjson demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.