0.1.2 • Published 6 years ago

@w33bletools/module-info v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

module-info

Get information about your module from your package.json file and any git information.

GitHub license Build Status Coverage npm Project Status

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