build-data
Get metadata for your build.
Why?
- Useful for managing build processes.
- Reliable and concurrent data collection.
- Intelligent behavior in or out of a repository.
Install
npm install build-data --save
Usage
Get it into your program.
const buildData = require('build-data');
Get the current branch name and build version to be associated with your build.
buildData().then((data) => {
console.log('data:', data);
});
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.
```js
buildData({ version : '3.2.1' }).then((data) => {
console.log('data:', data);
});
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
MPL-2.0 © Seth Holladay
Go make something, dang it.