npm-git-info

1.0.3 • Public • Published

npm-git-info

Build Status

Retrieves git information from package that installed as NPM package.

Usage

var npmGitInfo = require('npm-git-info');
 
var info = npmGitInfo(require('path/to/package.json'));
 
info.name           // will be the package name
info.version        // will be the current version
info.sha            // will be the current sha
info.abbreviatedSha // will be the first 10 chars of the current sha
info.ref            // will be the current ref specification

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    100,280
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    100,280
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i npm-git-info

Weekly Downloads

100,282

Version

1.0.3

License

MIT

Last publish

Collaborators

  • tricknotes