JSPM

npm-git-info

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81994
  • Score
    100M100P100Q150603F
  • License MIT

Retrieves git information from package that installed as NPM package.

Package Exports

  • npm-git-info

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-git-info) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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