Gathering detailed insights and metrics for react-git-info
Gathering detailed insights and metrics for react-git-info
Gathering detailed insights and metrics for react-git-info
Gathering detailed insights and metrics for react-git-info
npm install react-git-info
Typescript
Module System
Node Version
NPM Version
73.8
Supply Chain
75.6
Quality
74.9
Maintenance
100
Vulnerability
99.6
License
JavaScript (55.63%)
PowerShell (44.37%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
794,030
Last Day
581
Last Week
3,506
Last Month
14,238
Last Year
197,831
MIT License
52 Stars
48 Commits
8 Forks
3 Watchers
2 Branches
4 Contributors
Updated on Dec 09, 2024
Minified
Minified + Gzipped
Latest Version
2.0.1
Package Id
react-git-info@2.0.1
Unpacked Size
5.91 kB
Size
2.90 kB
File Count
7
NPM Version
8.3.2
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
-20.7%
581
Compared to previous day
Last Week
0.4%
3,506
Compared to previous week
Last Month
26.4%
14,238
Compared to previous month
Last Year
2.7%
197,831
Compared to previous year
1
Get git commit information in your React Application as a JavaScript object. No configuration necessary if you use create-react-app.
You need to install this repository as an NPM devDependency
:
1npm install --save-dev react-git-info
After that you can import the information to your static React files.
1import GitInfo from 'react-git-info/macro'; 2 3const gitInfo = GitInfo(); 4console.log(gitInfo.branch); 5console.log(gitInfo.tags); 6console.log(gitInfo.commit.date); 7console.log(gitInfo.commit.hash); 8console.log(gitInfo.commit.message); 9console.log(gitInfo.commit.shortHash); 10 11// or from JSX 12<p>{gitInfo.commit.message}</p>
There is built-in TypeScript support, you won't have to install external types.
This package uses a babel-plugin-macros
macro that is preconfigured when
you're using a recent version of create-react-app
.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 3/15 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More