README
module-info
Get information about your module from your package.json file and any git information.
Usage
yarn add @w33bletools/module-info
And in your code:
const moduleInfo = require('@w33bletools/module-info');
const info = moduleInfo();
/*
{
pkg: {
name: 'your-repo',
version: '1.0.0',
main: 'index.js',
dependencies: {}
},
git: {
branch: 'master',
tag: null,
commit: {
sha: 'ac2d0c4c19b7ab77bce0678fb304427c77d138db',
message: 'initial commit',
author: 'Commit Author <author@email>',
date: '2017-12-04T20:42:52.000Z'
}
}
}
*/
License
MIT © w33ble