{"id":51036186,"url":"https://github.com/rishvic/tree-sitter-nvmrc","last_synced_at":"2026-06-25T09:00:31.620Z","repository":{"id":365756733,"uuid":"1273459948","full_name":"rishvic/tree-sitter-nvmrc","owner":"rishvic","description":"nvmrc grammar for tree-sitter","archived":false,"fork":false,"pushed_at":"2026-06-20T13:23:38.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T06:34:07.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rishvic.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-18T14:43:25.000Z","updated_at":"2026-06-20T13:21:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rishvic/tree-sitter-nvmrc","commit_stats":null,"previous_names":["rishvic/tree-sitter-nvmrc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishvic/tree-sitter-nvmrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishvic%2Ftree-sitter-nvmrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishvic%2Ftree-sitter-nvmrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishvic%2Ftree-sitter-nvmrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishvic%2Ftree-sitter-nvmrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishvic","download_url":"https://codeload.github.com/rishvic/tree-sitter-nvmrc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishvic%2Ftree-sitter-nvmrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34678931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":[],"created_at":"2026-06-22T06:30:39.838Z","updated_at":"2026-06-23T07:00:38.756Z","avatar_url":"https://github.com/rishvic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2026 Rishvic Pushpakaran\n\nSPDX-License-Identifier: MIT\n--\u003e\n\n# tree-sitter-nvmrc\n\n[![Checks and Tests](https://github.com/rishvic/tree-sitter-nvmrc/actions/workflows/checks.yaml/badge.svg?branch=main)](https://github.com/rishvic/tree-sitter-nvmrc/actions/workflows/checks.yaml)\n[![REUSE status](https://api.reuse.software/badge/github.com/rishvic/tree-sitter-nvmrc)](https://api.reuse.software/info/github.com/rishvic/tree-sitter-nvmrc)\n\n[nvmrc](https://github.com/nvm-sh/nvm) grammar for\n[tree-sitter](https://tree-sitter.github.io/tree-sitter/).\n\nParses `.nvmrc` files (the node-version files that\n[nvm](https://github.com/nvm-sh/nvm) and compatible tools read). The grammar is\npermissive: it splits each line into an optional `key`/`value` on the first `=`,\nkeeps `#` comments and surrounding whitespace as extras, and leaves validation\n(e.g. rejecting bad version ranges) to downstream consumers.\n\nSee [`test/corpus/`](test/corpus) for the full set of examples that define the\ngrammar's behavior.\n\n## References\n\n- [nvm](https://github.com/nvm-sh/nvm): The reference implementation.\n  `nvm_process_nvmrc` in `nvm.sh` defines the parse: split into `key`/`value` on\n  the first `=`, keeping the remainder of the line verbatim as the value.\n- [`nvmrc`](https://github.com/nvm-sh/nvmrc): An alternative npm parser that\n  instead splits the value into parts.\n\nThe grammar keeps enough structure to describe both interpretations.\n\n## Development\n\nEdit [`grammar.js`](grammar.js), then regenerate and test:\n\n```sh\ntree-sitter generate\ntree-sitter test\n```\n\nThe parser under `src/` is generated from `grammar.js`. Regenerate and commit it\nalongside any grammar change.\n\n## License\n\n[MIT](LICENSE)\n\nBundled third-party MIT material is acknowledged in\n[`THIRD-PARTY-NOTICES.txt`](THIRD-PARTY-NOTICES.txt).\n\nThis repository is [REUSE](https://reuse.software)-compliant; new files need an\nSPDX header or a `.license` sidecar.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishvic%2Ftree-sitter-nvmrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishvic%2Ftree-sitter-nvmrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishvic%2Ftree-sitter-nvmrc/lists"}