{"id":20420193,"url":"https://github.com/matzeeable/grunt-node-modules-cachebuster","last_synced_at":"2026-05-15T08:37:20.741Z","repository":{"id":57285022,"uuid":"109853950","full_name":"matzeeable/grunt-node-modules-cachebuster","owner":"matzeeable","description":":star2: Generates a file containing node module versions for node_modules defined in your package.json.","archived":false,"fork":false,"pushed_at":"2019-11-05T08:07:03.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T13:48:28.068Z","etag":null,"topics":["cachebuster","grunt","grunt-task","npm"],"latest_commit_sha":null,"homepage":"https://matthias-web.com","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/matzeeable.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}},"created_at":"2017-11-07T15:28:41.000Z","updated_at":"2019-11-05T08:07:02.000Z","dependencies_parsed_at":"2022-08-24T18:13:02.084Z","dependency_job_id":null,"html_url":"https://github.com/matzeeable/grunt-node-modules-cachebuster","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/matzeeable/grunt-node-modules-cachebuster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matzeeable%2Fgrunt-node-modules-cachebuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matzeeable%2Fgrunt-node-modules-cachebuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matzeeable%2Fgrunt-node-modules-cachebuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matzeeable%2Fgrunt-node-modules-cachebuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matzeeable","download_url":"https://codeload.github.com/matzeeable/grunt-node-modules-cachebuster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matzeeable%2Fgrunt-node-modules-cachebuster/sbom","scorecard":{"id":628323,"data":{"date":"2025-08-11","repo":{"name":"github.com/matzeeable/grunt-node-modules-cachebuster","commit":"ac613913b46aeecc1d2010d4cca55761f98e2bb2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 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":"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":"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":"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":"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":"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":"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":"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":"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 2 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":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-957j-59c2-j692","Warn: Project is vulnerable to: GHSA-m5pj-vjjf-4m3h","Warn: Project is vulnerable to: GHSA-j383-35pm-c5h4","Warn: Project is vulnerable to: GHSA-rm36-94g8-835r","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-v2p6-4mp7-3r9v"],"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-21T07:09:21.452Z","repository_id":57285022,"created_at":"2025-08-21T07:09:21.452Z","updated_at":"2025-08-21T07:09:21.452Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33059650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["cachebuster","grunt","grunt-task","npm"],"created_at":"2024-11-15T06:42:00.043Z","updated_at":"2026-05-15T08:37:20.707Z","avatar_url":"https://github.com/matzeeable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grunt Node Modules Cachebuster\nThis tasks reads a folder of node package names subfolders and creates a file (`json`or `php`) with **key** (package name) **value** (version) pairs. An example use case is a project where you copy `js` and `css` files to a `library` folder from the `node_modules` folder. The webapp clients should then always load the latest version of the package files whenever they change (`npm update`). The plugin requires  [**grunt**](https://gruntjs.com/).\n\n## Getting started\nSimply install via:\n```sh\n$ npm install grunt-node-modules-cachebuster --save-dev\n```\n\n## Example task\nImagine the `public/lib` folder contains this subfolders (copied from `node_modules` via [`grunt-contrib-copy`](https://github.com/gruntjs/grunt-contrib-copy)): `react`, `react-dom`. Your `Gruntfile.js` can define a task like the below:\n\n```js\nnode_modules_cachebuster: {\n    'publiclib': {\n        options: {\n            banner: '/* This file was automatically generated (' + new Date().toString() + '). */',\n            format: 'php'\n        },\n        src: ['public/lib/*'],\n        dest: 'inc/others/cachebuster-lib.php'\n    }\n}\n```\nThe task above can result in (`cachebuster-lib.php`):\n```php\n\u003c?php\n/* This file was automatically generated (Tue Nov 07 2017 21:52:14 GMT+0000 (UTC)). */\nreturn array(\n\t'react' =\u003e '16.0.0',\n\t'react-dom' =\u003e '16.0.0'\n);\n```\n\n## API\n* `options.format` (_string_): `php` or `json` format. This format will be the output for the `dest` file.\n* `options.banner` (_string_): This text will be prepended to the output.\n* `options.altNodeModules` (_string_): Relative path to another `node_modules` folder, for example to work with hoisting (lerna, yarn workspaces)\n\n## License\nThis grunt task is MIT licensed. The project is inspired by this project: [grunt-cachebuster](https://github.com/felthy/grunt-cachebuster).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatzeeable%2Fgrunt-node-modules-cachebuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatzeeable%2Fgrunt-node-modules-cachebuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatzeeable%2Fgrunt-node-modules-cachebuster/lists"}