@w33bletools/module-infodeprecated

Get information about your npm module, using git and your package file

Usage no npm install needed!

<script type="module">
  import w33bletoolsModuleInfo from 'https://cdn.skypack.dev/@w33bletools/module-info';
</script>

README

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