https://github.com/gabrielczar/git-properties
Generate git.properties.json with basic git properties like current git commit hash, branch, and time.
https://github.com/gabrielczar/git-properties
git module nodejs properties
Last synced: 2 months ago
JSON representation
Generate git.properties.json with basic git properties like current git commit hash, branch, and time.
- Host: GitHub
- URL: https://github.com/gabrielczar/git-properties
- Owner: GabrielCzar
- Created: 2020-08-23T15:31:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:57:58.000Z (over 3 years ago)
- Last Synced: 2025-06-29T07:48:57.603Z (about 1 year ago)
- Topics: git, module, nodejs, properties
- Language: JavaScript
- Homepage:
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-properties
#### How to use
```js
import gitProperties from "git-properties";
async () => {
await gitProperties();
};
```
| Parameters | Description | Default |
| ---------- | ----------------------------------------- | ---------------------------- |
| destFile | Set the destination of the generated file | Default to project root path |
#### Scripts:
- `yarn build`
- `yarn test`
#### Example output:
> git.properties.json
```json5
{
branch: "master",
commit: {
message: "update README.md",
id: "8c7f48581094cb1e9ce68f33f2631e3bd7927591",
time: "2020-08-23T00:00:00.000Z",
user: { name: "User", email: "user@email.com" },
},
}
```