{"id":26788385,"url":"https://github.com/jadedblueeyes/vite-plugin-import-buffer","last_synced_at":"2026-02-14T18:01:49.388Z","repository":{"id":277567793,"uuid":"932850942","full_name":"JadedBlueEyes/vite-plugin-import-buffer","owner":"JadedBlueEyes","description":"Vite plugin to import files as node Buffers","archived":false,"fork":false,"pushed_at":"2025-10-21T08:12:11.000Z","size":57,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T07:45:15.964Z","etag":null,"topics":["node-buffer","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"","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/JadedBlueEyes.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-14T16:28:59.000Z","updated_at":"2025-09-21T19:39:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"72005df7-1cac-4804-8174-3291aae6325f","html_url":"https://github.com/JadedBlueEyes/vite-plugin-import-buffer","commit_stats":null,"previous_names":["jadedblueeyes/vite-plugin-import-buffer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/JadedBlueEyes/vite-plugin-import-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JadedBlueEyes%2Fvite-plugin-import-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JadedBlueEyes%2Fvite-plugin-import-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JadedBlueEyes%2Fvite-plugin-import-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JadedBlueEyes%2Fvite-plugin-import-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JadedBlueEyes","download_url":"https://codeload.github.com/JadedBlueEyes/vite-plugin-import-buffer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JadedBlueEyes%2Fvite-plugin-import-buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29451909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"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":["node-buffer","vite","vite-plugin"],"created_at":"2025-03-29T13:17:45.305Z","updated_at":"2026-02-14T18:01:49.382Z","avatar_url":"https://github.com/JadedBlueEyes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-import-buffer\r\n\r\nThis vite/rollup plugin allows importing files as node Buffers.\r\nFiles are appropriately emitted into build outputs, and loaded as a Buffer automatically.\r\n\r\n## Usage\r\n\r\n```js\r\nimport { defineConfig } from 'vite'\r\nimport importBuffer from 'vite-plugin-import-buffer'\r\n\r\nexport default defineConfig({\r\n  plugins: [\r\n    importBuffer()\r\n  ]\r\n})\r\n```\r\n\r\n## Example\r\n\r\n```js\r\nimport fontData from './Inter-Regular.ttf?buffer';\r\n``` \r\n\r\n\r\n## Options\r\n\r\n### `include`\r\n\r\nType: `string[] | RegExp`\r\n\r\nDefault: `[]`\r\n\r\nGlob patterns or RegExp to include files.\r\n\r\n### `exclude`\r\n\r\nType: `string[] | RegExp`\r\n\r\nDefault: `[]`\r\n\r\nGlob patterns or RegExp to exclude files.\r\n\r\n### `loader`\r\n\r\nType: `(src: string) =\u003e string`\r\n\r\nDefault: `(src) =\u003e `import { readFile } from 'node:fs/promises';\r\nexport const originalUrl = ${src};\r\nconst buf = await readFile(new URL(originalUrl, import.meta.url));\r\nexport default buf;`\r\n\r\nA function that returns the loader code for the buffer.\r\n\r\n## License\r\n\r\n[MIT](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadedblueeyes%2Fvite-plugin-import-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadedblueeyes%2Fvite-plugin-import-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadedblueeyes%2Fvite-plugin-import-buffer/lists"}