{"id":13483353,"url":"https://github.com/ikatyang/tree-sitter-yaml","last_synced_at":"2025-04-13T04:58:52.767Z","repository":{"id":40292325,"uuid":"205534137","full_name":"ikatyang/tree-sitter-yaml","owner":"ikatyang","description":"YAML grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2023-11-05T21:44:28.000Z","size":1248,"stargazers_count":102,"open_issues_count":31,"forks_count":49,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T04:58:47.528Z","etag":null,"topics":["grammar","tree-sitter","yaml"],"latest_commit_sha":null,"homepage":"https://ikatyang.github.io/tree-sitter-yaml/","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/ikatyang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-08-31T11:12:53.000Z","updated_at":"2025-04-10T07:28:12.000Z","dependencies_parsed_at":"2024-01-13T18:24:00.595Z","dependency_job_id":"fb3ee786-d987-4538-bab4-5031a726b968","html_url":"https://github.com/ikatyang/tree-sitter-yaml","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.25,"last_synced_commit":"0e36bed171768908f331ff7dff9d956bae016efb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang%2Ftree-sitter-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikatyang","download_url":"https://codeload.github.com/ikatyang/tree-sitter-yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665759,"owners_count":21142123,"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","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":["grammar","tree-sitter","yaml"],"created_at":"2024-07-31T17:01:10.384Z","updated_at":"2025-04-13T04:58:52.747Z","avatar_url":"https://github.com/ikatyang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# tree-sitter-yaml\n\n[![npm](https://img.shields.io/npm/v/tree-sitter-yaml.svg)](https://www.npmjs.com/package/tree-sitter-yaml)\n[![build](https://img.shields.io/travis/com/ikatyang/tree-sitter-yaml/master.svg)](https://travis-ci.com/ikatyang/tree-sitter-yaml/builds)\n\nYAML ([YAML Spec v1.2](https://yaml.org/spec/1.2/spec.html)) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter)\n\n[Changelog](https://github.com/ikatyang/tree-sitter-yaml/blob/master/CHANGELOG.md)\n\n## Install\n\n```sh\nnpm install tree-sitter-yaml tree-sitter\n```\n\n## Usage\n\n```js\nconst Parser = require(\"tree-sitter\");\nconst YAML = require(\"tree-sitter-yaml\");\n\nconst parser = new Parser();\nparser.setLanguage(YAML);\n\nconst sourceCode = `\n!!map\nhello: \u0026anchor\n- world\n`;\n\nconst tree = parser.parse(sourceCode);\nconsole.log(tree.rootNode.toString());\n// (stream\n//   (document\n//     (block_node\n//       (tag)\n//       (block_mapping\n//         (block_mapping_pair\n//           key: (flow_node\n//             (plain_scalar\n//               (string_scalar)))\n//           value: (block_node\n//             (anchor)\n//             (block_sequence\n//               (block_sequence_item\n//                 (flow_node\n//                   (plain_scalar\n//                     (string_scalar)))))))))))\n```\n\n## License\n\nMIT © [Ika](https://github.com/ikatyang)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang%2Ftree-sitter-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikatyang%2Ftree-sitter-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang%2Ftree-sitter-yaml/lists"}