{"id":13774808,"url":"https://github.com/pschroen/rollup-plugin-bundleutils","last_synced_at":"2026-02-06T09:47:45.785Z","repository":{"id":25450811,"uuid":"104033003","full_name":"pschroen/rollup-plugin-bundleutils","owner":"pschroen","description":"A set of functions commonly used after tree shaking","archived":false,"fork":false,"pushed_at":"2023-11-27T20:21:19.000Z","size":398,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T12:27:45.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/pschroen.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}},"created_at":"2017-09-19T06:00:52.000Z","updated_at":"2022-10-19T13:01:14.000Z","dependencies_parsed_at":"2024-01-06T22:50:09.266Z","dependency_job_id":"98a87749-8704-49e1-b216-07f3fb78c716","html_url":"https://github.com/pschroen/rollup-plugin-bundleutils","commit_stats":{"total_commits":91,"total_committers":2,"mean_commits":45.5,"dds":0.09890109890109888,"last_synced_commit":"7fc6486f9cd618969168e92c409cf2876872c7d1"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/pschroen/rollup-plugin-bundleutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschroen%2Frollup-plugin-bundleutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschroen%2Frollup-plugin-bundleutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschroen%2Frollup-plugin-bundleutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschroen%2Frollup-plugin-bundleutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschroen","download_url":"https://codeload.github.com/pschroen/rollup-plugin-bundleutils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschroen%2Frollup-plugin-bundleutils/sbom","scorecard":{"id":747931,"data":{"date":"2025-08-11","repo":{"name":"github.com/pschroen/rollup-plugin-bundleutils","commit":"79873d7e37fb1df8696f35dee74d7a3dd8399f9a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":"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":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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 8 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"}}]},"last_synced_at":"2025-08-22T19:25:40.440Z","repository_id":25450811,"created_at":"2025-08-22T19:25:40.440Z","updated_at":"2025-08-22T19:25:40.440Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29157439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-03T17:01:30.564Z","updated_at":"2026-02-06T09:47:45.741Z","avatar_url":"https://github.com/pschroen.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Output"],"readme":"# rollup-plugin-bundleutils\n\n[![NPM Package][npm]][npm-url]\n[![DeepScan][deepscan]][deepscan-url]\n\nA set of functions commonly used after tree shaking.\n\n## Install\n\n```sh\nnpm i -D rollup-plugin-bundleutils\n\n# or\n\nyarn add -D rollup-plugin-bundleutils\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport { timestamp, regex, babel, terser } from 'rollup-plugin-bundleutils';\n\nexport default {\n    // ...\n    plugins: [\n        regex([\n            [/^import\\s.*[\\r\\n]+/gm, '']\n        ]),\n        babel({\n            compact: false,\n            plugins: ['@babel/plugin-proposal-class-properties']\n        }),\n        terser({\n            output: {\n                preamble: `// ${timestamp()}`\n            }\n        })\n    ]\n};\n```\n\n## Exports\n\n### timestamp\n\n```js\nimport { timestamp } from 'rollup-plugin-bundleutils';\n\nconsole.log(timestamp()); // 2017-09-19 4:55pm\n```\n\n### regex\n\n[JavaScript String replace](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) after tree shaking. Expects an Array of `regexp|substr, newSubstr|function` pairs.\n\n```js\n// rollup.config.js\nimport { regex } from 'rollup-plugin-bundleutils';\n\nexport default {\n    input: 'src/main.js',\n    output: {\n        file: 'public/bundle.js',\n        format: 'es'\n    },\n    plugins: [\n        regex([\n            [/^[\\r\\n]+export\\s.*/gm, '']\n        ])\n    ]\n};\n```\n\n### babel\n\nTranspile bundle after tree shaking.\n\n```js\n// rollup.config.js\nimport { babel } from 'rollup-plugin-bundleutils';\n\nexport default {\n    input: 'src/main.js',\n    output: {\n        file: 'public/bundle.js',\n        format: 'iife'\n    },\n    plugins: [\n        babel({\n            // Default\n            presets: [\n                ['@babel/preset-env', { modules: false }]\n            ]\n        })\n    ]\n};\n```\n\n### terser [uglify|minify]\n\nMinify bundle after tree shaking.\n\n```js\n// rollup.config.js\nimport { terser } from 'rollup-plugin-bundleutils';\n\nexport default {\n    input: 'src/main.js',\n    output: {\n        file: 'public/bundle.js',\n        format: 'iife'\n    },\n    plugins: [\n        terser()\n    ]\n};\n```\n\n## Changelog\n\n* [Releases](https://github.com/pschroen/rollup-plugin-bundleutils/releases)\n\n## License\n\n[MIT](LICENSE)\n\n\n[npm]: https://img.shields.io/npm/v/rollup-plugin-bundleutils.svg\n[npm-url]: https://www.npmjs.com/package/rollup-plugin-bundleutils\n[deepscan]: https://deepscan.io/api/teams/20020/projects/23506/branches/715192/badge/grade.svg\n[deepscan-url]: https://deepscan.io/dashboard#view=project\u0026tid=20020\u0026pid=23506\u0026bid=715192\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschroen%2Frollup-plugin-bundleutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschroen%2Frollup-plugin-bundleutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschroen%2Frollup-plugin-bundleutils/lists"}