{"id":15022084,"url":"https://github.com/pascalre/homeassistant-js-yaml-schema","last_synced_at":"2025-10-14T08:13:56.951Z","repository":{"id":42369349,"uuid":"470766511","full_name":"pascalre/homeassistant-js-yaml-schema","owner":"pascalre","description":"A schema allowing js-yaml to process YAML documents including Home Assistent specific local tags.","archived":false,"fork":false,"pushed_at":"2025-10-06T20:42:32.000Z","size":314,"stargazers_count":2,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T22:29:56.470Z","etag":null,"topics":["homeassistant","homeassistant-yaml","js-yaml","js-yaml-schema","schema","yaml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/homeassistant-js-yaml-schema","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/pascalre.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":"2022-03-16T22:09:47.000Z","updated_at":"2024-05-15T21:57:29.000Z","dependencies_parsed_at":"2023-10-21T00:26:59.719Z","dependency_job_id":"81ed3433-5639-4e92-869b-31bb93bfdd30","html_url":"https://github.com/pascalre/homeassistant-js-yaml-schema","commit_stats":{"total_commits":17,"total_committers":4,"mean_commits":4.25,"dds":0.5294117647058824,"last_synced_commit":"e5668cb380b9c3d3d41b61b3106f990a7e9b521e"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pascalre/homeassistant-js-yaml-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalre%2Fhomeassistant-js-yaml-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalre%2Fhomeassistant-js-yaml-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalre%2Fhomeassistant-js-yaml-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalre%2Fhomeassistant-js-yaml-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascalre","download_url":"https://codeload.github.com/pascalre/homeassistant-js-yaml-schema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascalre%2Fhomeassistant-js-yaml-schema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018307,"owners_count":26086334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["homeassistant","homeassistant-yaml","js-yaml","js-yaml-schema","schema","yaml"],"created_at":"2024-09-24T19:57:26.194Z","updated_at":"2025-10-14T08:13:56.934Z","avatar_url":"https://github.com/pascalre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homeassistant-js-yaml-schema\n\n[![Coverage Status](https://coveralls.io/repos/github/pascalre/homeassistant-js-yaml-schema/badge.svg?branch=master)](https://coveralls.io/github/pascalre/homeassistant-js-yaml-schema?branch=master)\n\nSchema to allow js-yaml to process YAML formatted Home Assistent templates that use Home Assistent specific [local tags](https://www.home-assistant.io/docs/configuration/splitting_configuration/) while parsing or dumping, for example: `!env_var`, `!include_dir_named`.\n\nSee [tags.json](https://github.com/pascalre/homeassistant-js-yaml-schema/blob/master/src/tags.json) for currently supported local tags.\n\n# Usage\n```typescript\nconst jsyaml = require('js-yaml');\nconst fs     = require('fs');\nimport { HOMEASSISTANT_SCHEMA } from \"homeassistant-js-yaml-schema\"\n\nlet doc = yaml.load(fs.readFileSync('/path/to/file.yml', 'utf8'));\nlet body = jsyaml.load(doc, { schema: HOMEASSISTANT_SCHEMA });\nconsole.log(JSON.stringify(body, null, 2));\n\nbody = jsyaml.dump(body, { schema: HOMEASSISTANT_SCHEMA });\nconsole.log(body);\n```\n\nSee usage in [vscode-yaml-sort](https://github.com/pascalre/vscode-yaml-sort).\n\n# License\nhomeassistant-js-yaml-schema is licensed under the [MIT License](https://raw.githubusercontent.com/pascalre/homeassistant-js-yaml-schema/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalre%2Fhomeassistant-js-yaml-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalre%2Fhomeassistant-js-yaml-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalre%2Fhomeassistant-js-yaml-schema/lists"}