
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Go make something, dang it.
FAQs
Get metadata for your build
The npm package build-data receives a total of 6 weekly downloads. As such, build-data popularity was classified as not popular.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.