{"id":14989119,"url":"https://github.com/violentmonkey/rollup-plugin-userscript","last_synced_at":"2025-04-12T00:31:30.878Z","repository":{"id":65472260,"uuid":"351113898","full_name":"violentmonkey/rollup-plugin-userscript","owner":"violentmonkey","description":"Rollup plugin for userscript","archived":false,"fork":false,"pushed_at":"2025-01-07T08:48:44.000Z","size":156,"stargazers_count":14,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T15:41:07.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/violentmonkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-24T14:39:37.000Z","updated_at":"2025-02-20T05:36:26.000Z","dependencies_parsed_at":"2024-03-07T10:51:11.283Z","dependency_job_id":"5839a13f-1f2a-4b4a-9fe9-5ee277ed8dfd","html_url":"https://github.com/violentmonkey/rollup-plugin-userscript","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.07407407407407407,"last_synced_commit":"f5da2453f8fdbcfdb66061c1820549dd5489c4ec"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violentmonkey%2Frollup-plugin-userscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violentmonkey%2Frollup-plugin-userscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violentmonkey%2Frollup-plugin-userscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violentmonkey%2Frollup-plugin-userscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/violentmonkey","download_url":"https://codeload.github.com/violentmonkey/rollup-plugin-userscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501251,"owners_count":21114639,"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":[],"created_at":"2024-09-24T14:17:43.584Z","updated_at":"2025-04-12T00:31:30.554Z","avatar_url":"https://github.com/violentmonkey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-userscript\n\n![NPM](https://img.shields.io/npm/v/rollup-plugin-userscript.svg)\n![License](https://img.shields.io/npm/l/rollup-plugin-userscript.svg)\n![Downloads](https://img.shields.io/npm/dt/rollup-plugin-userscript.svg)\n\nAutomatically parse metadata and set `@grant`s.\n\nWith this plugin, `@grant`s for [`GM_*` functions](https://violentmonkey.github.io/api/metadata-block/) will be added at compile time.\n\n## Usage\n\nAdd the plugin to rollup.config.js:\n\n```js\nimport userscript from 'rollup-plugin-userscript';\n\nconst plugins = [\n  // ...\n  userscript(meta =\u003e meta.replace('process.env.AUTHOR', pkg.author)),\n];\n```\n\nImport the metadata file with a suffix `?userscript-metadata` in your script:\n\n```js\nimport './meta.js?userscript-metadata';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolentmonkey%2Frollup-plugin-userscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviolentmonkey%2Frollup-plugin-userscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolentmonkey%2Frollup-plugin-userscript/lists"}