Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
nerdbank-gitversioning
Advanced tools
Stamps your NPM packages with semver 2.0 compliant git commit specific version information.
With this package, and a version.json file to express your version number checked into the root of your git repo:
{
"version": "1.0-beta"
}
Your NPM packages and other builds can be automatically stamped with a version that precisely describes the git commit that built it.
Stamp your package.json file with the git-based version:
nbgv-setversion
Reset your package.json file with a version placeholder (suitable for checking in):
nbgv-setversion --reset
Or invoke the nbgv
tool directly for many options:
nbgv -?
A possible script to pack your NPM package:
yarn nbgv-setversion
yarn pack
yarn nbgv-setversion --reset
import * as nbgv from 'nerdbank-gitversioning'
// Retrieve all sorts of version information. Print just one bit.
const versionInfo = await nbgv.getVersion();
console.log(versionInfo.npmPackageVersion);
// Stamp the package.json file in the current directory with the computed version.
await nbgv.setPackageVersion();
// After packing, reset your package.json file to using a placeholder version number.
await nbgv.resetPackageVersionPlaceholder();
See our project README for more information.
FAQs
Stamps your NPM packages with semver 2.0 compliant git commit specific version information.
The npm package nerdbank-gitversioning receives a total of 0 weekly downloads. As such, nerdbank-gitversioning popularity was classified as not popular.
We found that nerdbank-gitversioning demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.