{"id":15294728,"url":"https://github.com/oplinjie/rollup-plugin-add-git-msg","last_synced_at":"2026-05-19T03:32:43.025Z","repository":{"id":65491253,"uuid":"91314059","full_name":"oplinjie/rollup-plugin-add-git-msg","owner":"oplinjie","description":"Simple rollup plugin that insert GIT_TAG and COMMITHASH in banner.","archived":false,"fork":false,"pushed_at":"2019-11-25T12:21:33.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T14:17:50.381Z","etag":null,"topics":["git","plugin","rollup","version"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oplinjie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T08:34:53.000Z","updated_at":"2019-11-25T12:21:35.000Z","dependencies_parsed_at":"2023-01-25T18:45:29.612Z","dependency_job_id":null,"html_url":"https://github.com/oplinjie/rollup-plugin-add-git-msg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oplinjie%2Frollup-plugin-add-git-msg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oplinjie%2Frollup-plugin-add-git-msg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oplinjie%2Frollup-plugin-add-git-msg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oplinjie%2Frollup-plugin-add-git-msg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oplinjie","download_url":"https://codeload.github.com/oplinjie/rollup-plugin-add-git-msg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245319954,"owners_count":20596076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","plugin","rollup","version"],"created_at":"2024-09-30T17:06:31.119Z","updated_at":"2026-05-19T03:32:42.982Z","avatar_url":"https://github.com/oplinjie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollup plugin add git msg [![NPM version](https://img.shields.io/npm/v/rollup-plugin-add-git-msg?style=flat-square)](https://www.npmjs.com/package/rollup-plugin-add-git-msg)\n\nWill add a comment to the start of the transpiled code.\n\nA standard Comment Header contains:\n\n- Current repo name from `package.json` and last git commit / git tag from git command.\n- The copyright of the repo.\n- Date of compiled time.\n\nExample header:\n\n```javascript\n/*!\n * ${rollup-plugin-add-git-msg} v1.0-${126f2767e370ed3593ad8d7b9e3b924d54515b24}\n *\n * Copyright 2017 by oplinjie\n *\n * Date: 2017-05-15\n*/\n```\n\n## Installation\n\n```bash\n$ npm install --save-dev rollup-plugin-add-git-msg\n```\n\n## Usage\n\nAdd plugin to your rollup configuration:\n\n```javascript\nimport addGitMsg from 'rollup-plugin-add-git-msg';\n\nmodule.exports = {\n  plugins: [\n    addGitMsg({ 'copyright': 'oplinjie' })\n  ]\n}\n```\n\n## Plugin Options\n\n- `showDate`     Default value: `true`\n- `showTag`      Default value: `true`\n- `showCommitID` Default value: `true`\n- `copyright`    Default value: `null`\n\n## License\n\nMIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foplinjie%2Frollup-plugin-add-git-msg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foplinjie%2Frollup-plugin-add-git-msg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foplinjie%2Frollup-plugin-add-git-msg/lists"}