{"id":15315783,"url":"https://github.com/wobsoriano/rustybun","last_synced_at":"2025-09-05T10:42:32.957Z","repository":{"id":51797707,"uuid":"520588858","full_name":"wobsoriano/rustybun","owner":"wobsoriano","description":"Readline implementation in Rust for Bun.","archived":false,"fork":false,"pushed_at":"2023-05-17T04:25:43.000Z","size":386,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T02:18:51.804Z","etag":null,"topics":["bun","readline"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/wobsoriano.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":"2022-08-02T17:24:32.000Z","updated_at":"2024-07-01T18:01:18.000Z","dependencies_parsed_at":"2025-04-15T02:18:53.405Z","dependency_job_id":"31c6ce02-a078-4fb1-99d6-5f86ca05d70b","html_url":"https://github.com/wobsoriano/rustybun","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wobsoriano/rustybun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Frustybun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Frustybun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Frustybun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Frustybun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wobsoriano","download_url":"https://codeload.github.com/wobsoriano/rustybun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Frustybun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273747734,"owners_count":25160650,"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-09-05T02:00:09.113Z","response_time":402,"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":["bun","readline"],"created_at":"2024-10-01T08:52:09.563Z","updated_at":"2025-09-05T10:42:27.942Z","avatar_url":"https://github.com/wobsoriano.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RustyBun\n\nReadline implementation in Rust for Bun. [RustyLine](https://github.com/kkawakam/rustyline) Bun ffi wrapper.\n\n## Install\n\n```bash\nbun add rustybun\n```\n\n## Usage\n\n```js\nimport RustyBun from 'rustybun'\n\nconst rb = new RustyBun()\n\nconst { success } = rb.loadHistory('history.txt')\nif (!success) {\n  console.log('No previous history.')\n}\n\nwhile (true) {\n  const line = rb.readline();\n  if (line.signal === 'CtrlC') {\n    console.log('CtrlC')\n    break\n  }\n  if (line.signal === 'CtrlD') {\n    console.log('CtrlD')\n    break\n  }\n  console.log(line.value)\n}\n\nrb.saveHistory('history.txt')\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Frustybun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwobsoriano%2Frustybun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Frustybun/lists"}