npm-git-info

Retrieves git information from package that installed as NPM package.

MIT 4 个版本
安装
npm install npm-git-info
yarn add npm-git-info
pnpm add npm-git-info
bun add npm-git-info
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
版本列表
1.0.3 2016-04-06
1.0.2 2016-03-02
1.0.1 2016-03-01
1.0.0 2016-01-27