gitinfo-ts
v0.0.2
Published
get git information
Downloads
1
Readme
gitinfo-ts
get git infomation, including username, branch, tag, commit...
Install
npm i gitinfo-tsUsage
import { getUsername } from 'gitinfo-ts'
async function getMyName() {
const username = await getUsername();
}
All Functions
export declare function getUsername(): Promise<string>;
export declare function getHeadSha(): Promise<string>;
export declare function getCurrentTag(): Promise<string>;
export declare function getBranchName(): Promise<string>;
export declare function hasUncommittedChanges(): Promise<boolean>;
