0.0.3 • Published 4 years ago

git-properties v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

git-properties

How to use

import gitProperties from "git-properties";

async () => {
  await gitProperties();
};
ParametersDescriptionDefault
destFileSet the destination of the generated fileDefault to project root path

Scripts:

  • yarn build
  • yarn test

Example output:

git.properties.json

{
  branch: "master",
  commit: {
    message: "update README.md",
    id: "8c7f48581094cb1e9ce68f33f2631e3bd7927591",
    time: "2020-08-23T00:00:00.000Z",
    user: { name: "User", email: "user@email.com" },
  },
}