{"id":15163056,"url":"https://github.com/gregives/eleventy-load-file","last_synced_at":"2026-02-19T12:03:04.702Z","repository":{"id":57222314,"uuid":"310577001","full_name":"gregives/eleventy-load-file","owner":"gregives","description":"Emit files to the Eleventy output directory using eleventy-load","archived":false,"fork":false,"pushed_at":"2021-06-29T20:18:31.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T18:46:14.042Z","etag":null,"topics":["eleventy","eleventy-load","file"],"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/gregives.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-06T11:21:59.000Z","updated_at":"2021-06-29T20:18:34.000Z","dependencies_parsed_at":"2022-09-05T08:20:34.002Z","dependency_job_id":null,"html_url":"https://github.com/gregives/eleventy-load-file","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gregives/eleventy-load-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregives%2Feleventy-load-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregives%2Feleventy-load-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregives%2Feleventy-load-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregives%2Feleventy-load-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregives","download_url":"https://codeload.github.com/gregives/eleventy-load-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregives%2Feleventy-load-file/sbom","scorecard":{"id":444905,"data":{"date":"2025-08-11","repo":{"name":"github.com/gregives/eleventy-load-file","commit":"ba61b6f8e2d851e4ccc02b411ff5649804eb622c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-19T06:28:15.335Z","repository_id":57222314,"created_at":"2025-08-19T06:28:15.335Z","updated_at":"2025-08-19T06:28:15.335Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"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":["eleventy","eleventy-load","file"],"created_at":"2024-09-27T02:02:49.066Z","updated_at":"2026-02-19T12:03:04.670Z","avatar_url":"https://github.com/gregives.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eleventy-load-file\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Prettier][prettier-src]][prettier-href]\n\nEmit files to the Eleventy output directory using [eleventy-load](https://github.com/gregives/eleventy-load).\n\n## Getting Started\n\nFirstly, you'll need to install [eleventy-load](https://github.com/gregives/eleventy-load) (if you haven't already) and eleventy-load-file. You'll probably want to use eleventy-load-file in combination with [eleventy-load-html](https://github.com/gregives/eleventy-load-html), so we'll install that as well.\n\n```sh\nnpm install --save-dev eleventy-load eleventy-load-file eleventy-load-html\n```\n\nThen you can set up eleventy-load-file using a rule in your eleventy-load options.\n\n```js\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(require(\"eleventy-load\"), {\n    rules: [\n      {\n        test: /\\.html$/,\n        loaders: [\n          {\n            loader: require(\"eleventy-load-html\"),\n          },\n        ],\n      },\n      {\n        test: /\\.(png|jpe?g|gif)$/,\n        loaders: [\n          {\n            loader: require(\"eleventy-load-file\"),\n            options: {\n              name: \"[name].[hash:16].[ext]\",\n            },\n          },\n        ],\n      },\n    ],\n  });\n};\n```\n\n## Options\n\n| Name                            | Type     | Default                 | Description                                |\n| ------------------------------- | -------- | ----------------------- | ------------------------------------------ |\n| [**`name`**](#name)             | `String` | `\"[hash].[ext]\"`        | Filename template for the emitted file     |\n| [**`outputPath`**](#outputpath) | `String` | `this.config.outputDir` | Path where the emitted file will be placed |\n| [**`publicPath`**](#publicpath) | `String` | `\"assets\"`              | Public path for the emitted file           |\n\n### `name`\n\nType: `String` Default: `\"[hash].[ext]\"`\n\nFilename template for the emitted file which can include placeholders, see the [list of placeholders below](#placeholders).\n\n```c\n\"[name].[hash:16].[ext]\" // styles.c0c108d2da16f77a.css\n```\n\n### `outputPath`\n\nType: `String` Default: `this.config.outputDir`\n\nPath where the emitted file will be placed. This defaults to the Eleventy project's output directory.\n\n### `publicPath`\n\nType: `String` Default: `\"assets\"`\n\nPublic path for the emitted file within the output directory. By default, the file will be saved into an `assets` folder, so the URL returned from eleventy-load-file will resemble `/assets/styles.c0c108d2da16f77a.css`.\n\n## Placeholders\n\nThe following placeholders are replaced in the `name` option:\n\n- `[ext]` the extension of the resource\n- `[name]` the basename of the resource\n- `[hash]` or `[hash:N]` the hash of the content of the resource, length `N` defaults to 8 characters\n\n\u003c!-- References --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/eleventy-load-file/latest.svg\n[npm-version-href]: https://npmjs.com/package/eleventy-load-file\n[npm-downloads-src]: https://img.shields.io/npm/dt/eleventy-load-file.svg\n[npm-downloads-href]: https://npmjs.com/package/eleventy-load-file\n[license-src]: https://img.shields.io/npm/l/eleventy-load-file.svg\n[license-href]: https://npmjs.com/package/eleventy-load-file\n[prettier-src]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg\n[prettier-href]: https://github.com/prettier/prettier\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregives%2Feleventy-load-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregives%2Feleventy-load-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregives%2Feleventy-load-file/lists"}