rollup-plugin-git-info
JSON →A Rollup plugin that injects git build metadata (branch, commit hash, abbreviated hash, version, dates) into imported package.json files. Version 1.0.0 requires Node.js 12+ and Rollup 2+. This plugin is minimal and focused: it relies on @rollup/plugin-json for JSON handling and git CLI commands for data collection. Unlike alternatives that use environment variables or require manual configuration, it automatically populates standard fields like gitVersion and buildDate with no setup beyond adding the plugin.
Traffic · last 30 days stale · no recent hits
total hits 13
actors 5 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇨🇳 China · 🇺🇦 Ukraine
Resources
API endpoints
full doc /v1/registry/rollup-plugin-git-info
compatibility /v1/registry/rollup-plugin-git-info/compatibility