{"library":"rollup-plugin-git-info","title":"rollup-plugin-git-info","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-git-info"],"cli":null},"imports":["import gitInfo from 'rollup-plugin-git-info';","const gitInfo = require('rollup-plugin-git-info').default;","import gitInfo from 'rollup-plugin-git-info';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import gitInfo from 'rollup-plugin-git-info';\nimport json from '@rollup/plugin-json';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    json(),\n    gitInfo(),\n  ],\n};","lang":"javascript","description":"Basic Rollup configuration using gitInfo plugin with @rollup/plugin-json to expose git metadata in package.json imports.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}