Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Node.js application for creating version file of git repository

License

Notifications You must be signed in to change notification settings

coding-lemur/node-git-version

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-git-version

This module creates version.js file in current directory containing object with following information:

*tag* - Git tag attached to HEAD (if any)
*hash* - SHA-1 hash of HEAD
*timestamp* - current timestamp

This information is presented as Node.js module and can be used by Node.js app for getting version information

Usage

$ npm install -g node-git-version
$ // Go to your repo
$ node-git-version
$ cat version.js

export const version = {
	tag: '1.0.0',
	hash: 'e037765',
	timestamp: 1425721222
};

About

Node.js application for creating version file of git repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%