{"id":39015416,"url":"https://github.com/goldenpathtechnologies/hledger-parser","last_synced_at":"2026-01-17T17:24:33.486Z","repository":{"id":185727142,"uuid":"673151627","full_name":"goldenpathtechnologies/hledger-parser","owner":"goldenpathtechnologies","description":"A parser for hledger journal files based on Chevrotain","archived":false,"fork":false,"pushed_at":"2024-06-10T01:17:05.000Z","size":1989,"stargazers_count":5,"open_issues_count":19,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-26T22:09:12.532Z","etag":null,"topics":["hledger","ledger","plaintext-accounting"],"latest_commit_sha":null,"homepage":"https://hledger-parser.goldenpath.ca/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jonestristand/hledger-parser","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goldenpathtechnologies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T01:54:08.000Z","updated_at":"2025-07-13T03:47:06.000Z","dependencies_parsed_at":"2024-03-26T18:24:40.173Z","dependency_job_id":"0e0d43d0-ffa0-477d-a207-3080547d2eef","html_url":"https://github.com/goldenpathtechnologies/hledger-parser","commit_stats":null,"previous_names":["darylwright/hledger-parser","goldenpathtechnologies/hledger-parser"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/goldenpathtechnologies/hledger-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenpathtechnologies%2Fhledger-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenpathtechnologies%2Fhledger-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenpathtechnologies%2Fhledger-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenpathtechnologies%2Fhledger-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldenpathtechnologies","download_url":"https://codeload.github.com/goldenpathtechnologies/hledger-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldenpathtechnologies%2Fhledger-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["hledger","ledger","plaintext-accounting"],"created_at":"2026-01-17T17:24:33.398Z","updated_at":"2026-01-17T17:24:33.471Z","avatar_url":"https://github.com/goldenpathtechnologies.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hledger-parser\n\n![Project Status](https://img.shields.io/badge/Project_Status-alpha-orange)\n![NPM Version](https://img.shields.io/npm/v/hledger-parser)\n![Release](https://img.shields.io/github/actions/workflow/status/goldenpathtechnologies/hledger-parser/release.yml)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n![LICENSE](https://img.shields.io/github/license/goldenpathtechnologies/hledger-parser)\n\n![hledger-parser logo](https://github.com/goldenpathtechnologies/hledger-parser/blob/main/resources/logo-256.png?raw=true)\n\nA parser for hledger journal files based on Chevrotain.\n\n## Grammar\n\n[🏗️ Parsing diagram](https://raw.githack.com/goldenpathtechnologies/hledger-parser/main/diagram.html)\n\n## Installation\n\n```sh\nnpm install hledger-parser\n```\n\n## Usage\n\n```typescript\nimport { parseLedgerToCooked } from 'hledger-parser';\n\nconst parseResult = parseLedgerToCooked(sourceCode);\n\nconsole.log(`Lexing errors: ${parseResult.lexErrors.length}`);\nconsole.log(`Parsing errors: ${parseResult.parseErrors.length}`);\nconsole.log('Result:', parseResult.cookedJournal);\n\n// Output:\n// =\u003e Lexing errors: 0\n// =\u003e Parsing errors: 0\n// =\u003e Result: {\n// =\u003e   transactions: [\n// =\u003e     {\n// =\u003e       date: [Object],\n// =\u003e       status: 'unmarked',\n// =\u003e       description: 'Transaction',\n// =\u003e       postings: [Array],\n// =\u003e       tags: []\n// =\u003e     }\n// =\u003e   ],\n// =\u003e   accounts: [],\n// =\u003e   prices: []\n// =\u003e }\n```\n\n## Contributors\n\n- Tristan Jones ([@jonestristand](https://github.com/jonestristand)), Author\n- Daryl G. Wright ([@darylwright](https://github.com/darylwright)), Lead Maintainer\n\n## Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check the\n[issues page](https://github.com/goldenpathtechnologies/hledger-parser/issues). You can also take a\nlook at the [contributing guide](https://github.com/goldenapathtechnologies/hledger-parser/blob/master/CONTRIBUTING.md).\n\n## Project roadmap\n\nPlease see the [roadmap](ROADMAP.md) for project status and a list of features to be implemented.\n\n## Note\n\nThis is a detached fork of the original\n[`hledger-parser`](https://github.com/jonestristand/hledger-parser), and is in active development.\nSpecial thanks goes out to @jonestristand for all the initial work he put into this project!\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## License\n\nCopyright © 2022 [Tristan Jones \u003cjones.tristand@gmail.com\u003e](https://github.com/jonestristand).\u003cbr /\u003e\nCopyright © 2024 [Daryl G. Wright \u003cdaryl@goldenpath.ca\u003e](https://github.com/darylwright).\u003cbr /\u003e\nThis project is [MIT](https://github.com/goldenpathtechnologies/hledger-parser/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenpathtechnologies%2Fhledger-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldenpathtechnologies%2Fhledger-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenpathtechnologies%2Fhledger-parser/lists"}