{"id":26120857,"url":"https://github.com/pyrmont/lemongrass","last_synced_at":"2026-02-05T23:01:24.211Z","repository":{"id":211159215,"uuid":"728367951","full_name":"pyrmont/lemongrass","owner":"pyrmont","description":"A converter in Janet for markup languages like HTML and XML","archived":false,"fork":false,"pushed_at":"2025-09-22T21:39:10.000Z","size":65,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T08:37:00.352Z","etag":null,"topics":["hiccup","html","xml"],"latest_commit_sha":null,"homepage":"","language":"Janet","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/pyrmont.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}},"created_at":"2023-12-06T19:43:08.000Z","updated_at":"2025-09-22T21:39:13.000Z","dependencies_parsed_at":"2024-09-12T11:28:28.276Z","dependency_job_id":"f9314d71-4a00-40e4-a72a-ef5d538e6f2c","html_url":"https://github.com/pyrmont/lemongrass","commit_stats":null,"previous_names":["pyrmont/lemongrass"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyrmont/lemongrass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrmont%2Flemongrass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrmont%2Flemongrass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrmont%2Flemongrass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrmont%2Flemongrass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyrmont","download_url":"https://codeload.github.com/pyrmont/lemongrass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrmont%2Flemongrass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29137751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T22:49:08.052Z","status":"ssl_error","status_checked_at":"2026-02-05T22:45:32.059Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hiccup","html","xml"],"created_at":"2025-03-10T13:52:54.176Z","updated_at":"2026-02-05T23:01:24.205Z","avatar_url":"https://github.com/pyrmont.png","language":"Janet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lemongrass\n\n[![Test Status][icon]][status]\n\n[icon]: https://github.com/pyrmont/lemongrass/workflows/test/badge.svg\n[status]: https://github.com/pyrmont/lemongrass/actions?query=workflow%3Atest\n\nLemongrass is a pure Janet library for converting between markup languages like\nHTML and XML and Janet data structures (in [Hiccup syntax][hs]). It comes with\na CLI utility for converting at the command line.\n\n[hs]: http://weavejester.github.io/hiccup/syntax.html \"Read more about Hiccup syntax\"\n\n## Library\n\n### Installation\n\nAdd the dependency to your `info.jdn` file:\n\n```janet\n  :dependencies [\"https://github.com/pyrmont/lemongrass\"]\n```\n\n### Usage\n\nLemongrass can be used like this:\n\n```janet\n(import lemongrass)\n\n(lemongrass/markup-\u003ejanet `\u003ch1 class=\"foo\"\u003eHello world!\u003c/h1\u003e`)\n# =\u003e @[:h1 @{:class \"foo\"} \"Hello world!\"]\n\n(lemongrass/janet-\u003emarkup [:h1 {:class \"foo\"} \"Hello world!\"])\n# =\u003e \"\u003ch1 class=\"foo\"\u003eHello world!\u003c/h1\u003e\"\n```\n\nCheck out the [API document](api.md) for more information.\n\n## Utility\n\n### Installation\n\nTo install the `lg` CLI utility with JPM:\n\n```shell\n$ jpm install \"https://github.com/pyrmont/lemongrass\"\n```\n\n### Usage\n\nRun `lg --help` for usage information:\n\n```\n$ lg --help\nUsage: lg [--format \u003cformat\u003e] [--output \u003cpath\u003e] [--reverse] [\u003cinput\u003e]\n\nConvert from HTML/XML to Janet data structures.\n\nParameters:\n\n input    The \u003cpath\u003e for the input file. (Default: stdin)\n\nOptions:\n\n -f, --format \u003cformat\u003e    The \u003cformat\u003e of the markup, either html or xml. (Default: html)\n -o, --output \u003cpath\u003e      The \u003cpath\u003e for the output file. (Default: stdout)\n -r, --reverse            Reverse the polarity and convert from Janet to markup.\n\n -h, --help               Show this help message.\n```\n\n## Bugs\n\nFound a bug? I'd love to know about it. The best way is to report your bug in\nthe [Issues][] section on GitHub.\n\n[Issues]: https://github.com/pyrmont/lemongrass/issues\n\n## Licence\n\nLemongrass is licensed under the MIT Licence. See [LICENSE][] for more details.\n\n[LICENSE]: https://github.com/pyrmont/lemongrass/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrmont%2Flemongrass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyrmont%2Flemongrass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrmont%2Flemongrass/lists"}