{"id":14155925,"url":"https://github.com/luxass/esbuild-yaml","last_synced_at":"2026-02-22T17:22:37.742Z","repository":{"id":48131863,"uuid":"516533152","full_name":"luxass/esbuild-yaml","owner":"luxass","description":"📦 A esbuild plugin that allow import of yaml files","archived":false,"fork":false,"pushed_at":"2026-02-17T20:29:47.000Z","size":668,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-18T01:28:59.896Z","etag":null,"topics":["esbuild","esbuild-plugin","yaml"],"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/luxass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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},"funding":{"github":"luxass"}},"created_at":"2022-07-21T22:01:29.000Z","updated_at":"2026-01-29T21:45:54.000Z","dependencies_parsed_at":"2025-11-27T13:00:04.100Z","dependency_job_id":null,"html_url":"https://github.com/luxass/esbuild-yaml","commit_stats":{"total_commits":66,"total_committers":2,"mean_commits":33.0,"dds":0.5,"last_synced_commit":"70d4f145aa8be4cafc1e63cf0862d1407579f4be"},"previous_names":["zotera/esbuild-yaml","luxass/esbuild-yaml","luxass/esbuild-plugin-yaml"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/luxass/esbuild-yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxass%2Fesbuild-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxass%2Fesbuild-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxass%2Fesbuild-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxass%2Fesbuild-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luxass","download_url":"https://codeload.github.com/luxass/esbuild-yaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxass%2Fesbuild-yaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29720509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: 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":["esbuild","esbuild-plugin","yaml"],"created_at":"2024-08-17T08:05:05.811Z","updated_at":"2026-02-22T17:22:37.709Z","avatar_url":"https://github.com/luxass.png","language":"TypeScript","funding_links":["https://github.com/sponsors/luxass"],"categories":["yaml"],"sub_categories":[],"readme":"# esbuild-yaml\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n\n\u003e [!NOTE]\n\u003e If you are using different bundlers than esbuild, you could try [`unplugin-yaml`](https://github.com/luxass/unplugin-yaml)\n\u003e which supports all different kinds of bundlers, powered by unplugin.\n\n## 📦 Installation\n\n```sh\nnpm install --save-dev esbuild-yaml esbuild\n```\n\n## 📚 Usage\n\nAdd this to your build file\n\n```js\nimport { build } from \"esbuild\";\nimport { YAMLPlugin } from \"esbuild-yaml\";\n\nconst yourConfig = {};\n\nbuild({\n  ...yourConfig,\n  plugins: [\n    YAMLPlugin()\n  ]\n});\n```\n\n### TypeScript\n\nIf you are using TypeScript, you need to add the following to your `tsconfig.json` file:\n\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\n      \"esbuild-yaml/types\"\n    ]\n  }\n}\n```\n\n## 📖 Examples\n\n```js\n// build.js\nimport { build } from \"esbuild\";\nimport { YAMLPlugin } from \"esbuild-yaml\";\n\nconst yourConfig = {};\n\nbuild({\n  ...yourConfig,\n  plugins: [\n    YAMLPlugin()\n  ]\n});\n```\n\n```yaml\n# config.yaml\nname: esbuild-yaml\n\nversion: 1.0.0\n```\n\n```ts\n// index.ts\n\nimport config from \"./config.yaml\"; // this will be converted to a JSON object\nimport configRaw from \"./config.yaml?raw\"; // this will be the raw YAML string\n\nconsole.log(config); // { name: \"esbuild-yaml\", version: \"1.0.0\" }\nconsole.log(configRaw); // name: esbuild-yaml\\nversion: 1.0.0\n```\n\n## 📄 License\n\nPublished under [MIT License](./LICENSE).\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/esbuild-yaml?style=flat\u0026colorA=18181B\u0026colorB=4169E1\n[npm-version-href]: https://npmjs.com/package/esbuild-yaml\n[npm-downloads-src]: https://img.shields.io/npm/dm/esbuild-yaml?style=flat\u0026colorA=18181B\u0026colorB=4169E1\n[npm-downloads-href]: https://npmjs.com/package/esbuild-yaml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxass%2Fesbuild-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluxass%2Fesbuild-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxass%2Fesbuild-yaml/lists"}