
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Get metadata for your build
npm install build-data --save
Get it into your program.
const buildData = require('build-data');
Get the current branch name and a version to be associated with your build.
buildData().then((data) => {
console.log('data:', data);
// {
// branch : 'master',
// version : '1.0.0'
// }
});
Get the data that was used for the most recent build.
buildData.latest().then((data) => {
console.log('data:', data);
});
You can and should provide any data you know already.
buildData({ version : '3.2.1' }).then((data) => {
console.log('data:', data);
});
Type: object
Settings and known build metadata.
Type: string
Default: process.cwd()
The parent directory of the build root.
Type: string
Use the given branch name, instead of asking git.
Type: string
Use the given version, instead of asking build-version.
Same as buildData(), except the branch defaults to the most recently built branch and version defaults to the most recently built version of the branch.
See our contributing guidelines for more details.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureGo make something, dang it.
FAQs
Get metadata for your build
We found that build-data 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.