{"id":15046507,"url":"https://github.com/flandredaisuki/rollup-plugin-userscript-metablock","last_synced_at":"2025-09-04T06:42:25.426Z","repository":{"id":47675577,"uuid":"110270778","full_name":"FlandreDaisuki/rollup-plugin-userscript-metablock","owner":"FlandreDaisuki","description":"Transform json file to userscript metablock and append on.","archived":false,"fork":false,"pushed_at":"2025-06-09T15:52:49.000Z","size":408,"stargazers_count":37,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-19T04:49:33.231Z","etag":null,"topics":["hacktoberfest","rollup","rollup-plugin","userscript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rollup-plugin-userscript-metablock","language":"JavaScript","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/FlandreDaisuki.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-11-10T16:54:46.000Z","updated_at":"2025-06-09T15:32:54.000Z","dependencies_parsed_at":"2024-05-17T14:45:20.837Z","dependency_job_id":"d4b46697-2641-4b4a-a033-96ca21a8690a","html_url":"https://github.com/FlandreDaisuki/rollup-plugin-userscript-metablock","commit_stats":{"total_commits":52,"total_committers":8,"mean_commits":6.5,"dds":"0.17307692307692313","last_synced_commit":"fc2122ad3abb2b35b3c616235fafb267d9c2ad38"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/FlandreDaisuki/rollup-plugin-userscript-metablock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlandreDaisuki%2Frollup-plugin-userscript-metablock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlandreDaisuki%2Frollup-plugin-userscript-metablock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlandreDaisuki%2Frollup-plugin-userscript-metablock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlandreDaisuki%2Frollup-plugin-userscript-metablock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlandreDaisuki","download_url":"https://codeload.github.com/FlandreDaisuki/rollup-plugin-userscript-metablock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlandreDaisuki%2Frollup-plugin-userscript-metablock/sbom","scorecard":{"id":50810,"data":{"date":"2025-08-11","repo":{"name":"github.com/FlandreDaisuki/rollup-plugin-userscript-metablock","commit":"5fb1da52aa6e954d35a26e1b5e12e99011f4ac00"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T23:40:06.851Z","repository_id":47675577,"created_at":"2025-08-14T23:40:06.851Z","updated_at":"2025-08-14T23:40:06.851Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273567309,"owners_count":25128630,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","rollup","rollup-plugin","userscript"],"created_at":"2024-09-24T20:53:10.792Z","updated_at":"2025-09-04T06:42:25.373Z","avatar_url":"https://github.com/FlandreDaisuki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-userscript-metablock\n\nTransform json file to userscript metablock and append on.\n\nMetakeys documents:\n\n- [Tampermonkey](https://tampermonkey.net/documentation.php)\n- [Greasemonkey](https://wiki.greasespot.net/Metadata_Block)\n- [Violentmonkey](https://violentmonkey.github.io/api/metadata-block/)\n- [GreasyFork](https://greasyfork.org/help/meta-keys)\n\n## Installation\n\n```sh\nnpm install --save-dev rollup-plugin-userscript-metablock\n```\n\n## Usage\n\nsimplest\n\n```js\nimport metablock from 'rollup-plugin-userscript-metablock';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.user.js',\n    format: 'esm'\n  },\n  plugins: [metablock()],\n};\n```\n\ncommon\n\n```js\nimport metablock from 'rollup-plugin-userscript-metablock';\n\nconst pkg = require('package.json');\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.user.js',\n    format: 'esm'\n  },\n  plugins: [metablock({\n    file: './meta.json',\n    override: {\n      name: pkg.name,\n      version: pkg.version,\n      description: pkg.description,\n      homepage: pkg.homepage,\n      author: pkg.author,\n      license: pkg.license,\n    }\n  })],\n};\n```\n\nYou can find the options detail [here](./docs/options.md), and meta details [here](./docs/meta.md).\n\n### Other\n\n1. If no grant, use `@grant none` explicitly\n   - Greasemonkey treat no set as `@grant none`. [Ref](https://wiki.greasespot.net/@grant)\n   - Tampermonkey treat no set as grant you use but some need declare explicitly. [Ref](https://tampermonkey.net/documentation.php#_grant)\n   - Both can use info (`GM_info` / `GM.info`) without grant\n   - **Idea:** Maybe add a todo that inspect code to auto generate grant\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflandredaisuki%2Frollup-plugin-userscript-metablock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflandredaisuki%2Frollup-plugin-userscript-metablock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflandredaisuki%2Frollup-plugin-userscript-metablock/lists"}