Skip to content
JS
Package

git-rev-sync

Synchronously get the current git commit hash, tag, or branch

v3.0.2, 19 Jan 2022MITCommonJSTypes: None
$ npm install git-rev-sync

Key numbers

As of 25 Sept 2026
Weekly downloads
577k
+134% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
4 years ago
v3.0.2
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 866.1k (25 Aug 2026)Low 113.4k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

577,048 downloads last week, 2,715,253 in the last month. The 12-month change of +134% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
027 in total
Latest version
3.0.2, 19 Jan 20224 years ago
First published
7 Oct 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v3 first release 3.0.0, 2 Sept 2020
  2. v2 first release 2.0.0, 15 Dec 2019
  3. v1 first release 1.0.0, 21 Jan 2015
  4. v0 first release 0.1.0, 7 Oct 2014

Recent releases

VersionPublished
3.0.219 Jan 2022
3.0.12 Sept 2020
3.0.02 Sept 2020
2.1.02 Sept 2020
2.0.015 Dec 2019
1.12.027 Apr 2018
1.11.227 Apr 2018
1.11.12 Apr 2018
1.11.02 Apr 2018
1.10.016 Feb 2018
1.9.125 Apr 2017
1.9.028 Mar 2017
1.8.010 Oct 2016
1.7.121 Sept 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (3)
shelljsgraceful-fsescape-string-regexp
npm install git-rev-sync
  • jsDelivrhttps://cdn.jsdelivr.net/npm/git-rev-sync@3.0.2/
  • unpkghttps://unpkg.com/git-rev-sync@3.0.2/
  • esm.shhttps://esm.sh/git-rev-sync@3.0.2
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.