Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
version-manage
Advanced tools
Manage semantic versioned versions, version 0.1.0
It's really simple, version manage has 3 methods (which can be chained)
var VersionManager = require('version-manage');
var packageJson = require('./package.json');
var Manager = new VersionManager(packageJson.version);
Returns the current version as a string. This will update after every .increment()
and .decrement()
.
console.log(Manager.version); // 0.1.0
You can increment by calling Manager.increment(type)
where type is
console.log(Manager.version) // 1.0.0
Manager.increment('patch');
console.log(Manager.version) // 1.0.1
PROTIP: Manager.bump(type)
is an alias for increment.
You can increment by calling Manager.decrement(type)
where type is
console.log(Manager.version) // 5.7.2
Manager.decrement('major');
console.log(Manager.version) // 4.7.2
You can write to your package.json by specifying the package.json path and an optional callback
console.log(Manager.version) // 1.3.0
Manager.increment('patch'); // 1.3.1
Manager.write('./package.json', function () { console.log('Success!'); });
Or you can chain them:
Manager.increment('patch').write('./package.json');
FAQs
Manage npm / node version strings
The npm package version-manage receives a total of 0 weekly downloads. As such, version-manage popularity was classified as not popular.
We found that version-manage 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.