{"id":13620924,"url":"https://github.com/eagr/sol-repl","last_synced_at":"2025-03-20T11:35:55.902Z","repository":{"id":65522304,"uuid":"479017509","full_name":"eagr/sol-repl","owner":"eagr","description":"Solidity REPL","archived":false,"fork":false,"pushed_at":"2022-05-07T15:20:31.000Z","size":355,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-29T00:06:04.077Z","etag":null,"topics":["ethereum","repl","solidity"],"latest_commit_sha":null,"homepage":"","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/eagr.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}},"created_at":"2022-04-07T14:20:37.000Z","updated_at":"2023-08-29T04:44:18.000Z","dependencies_parsed_at":"2023-01-27T05:45:31.929Z","dependency_job_id":null,"html_url":"https://github.com/eagr/sol-repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagr%2Fsol-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagr%2Fsol-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagr%2Fsol-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagr%2Fsol-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagr","download_url":"https://codeload.github.com/eagr/sol-repl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221753026,"owners_count":16875073,"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":["ethereum","repl","solidity"],"created_at":"2024-08-01T21:01:00.769Z","updated_at":"2024-10-28T00:41:00.536Z","avatar_url":"https://github.com/eagr.png","language":"JavaScript","funding_links":[],"categories":["Tools","Solidity"],"sub_categories":["Other dialects and variants"],"readme":"# sol-repl\n\na REPL to provide instant feedback for Solidity snippets\n\n[Any bug reports or feature requests](https://github.com/eagr/sol-repl/issues/new) are appreciated.\n\n## Features\n\n* language\n  * [x] constant\n  * [x] contract\n  * [x] enum\n  * [x] function\n  * [x] import\n  * [x] interface\n  * [x] library\n  * [x] struct\n  * [x] type\n* REPL\n  * [x] Node-like REPL interactions\n  * [x] cursor/delete shortcuts\n  * [x] history traversing\n  * [x] history filtering\n  * [x] `.session` print formatted Solidity source\n  * [ ] `.editor` editor mode\n\n## Install\n\n```sh\nnpm i -g sol-repl\n```\n\n## Usage\n\n```sh\n$ sol\nWelcome to Solidity v0.8.13!\nType \".help\" for more information.\n\u003e .help\n.exit       Exit the REPL\n.help       Print this message\n.session    Print current session\n\u003e enum Abc { a, b, c }\n\u003e type(Abc).max\n2\n\u003e Abc c = Abc.c\n2\n\u003e contract C {}\n\u003e msg.sender\n0x4B6F0b9546487B1a184ADc43e0b17299cCdf8648\n```\n\n## Shortcuts\n\n**cursor**\n\n* \u003ckbd\u003eAlt+Left\u003c/kbd\u003e   Cursor to previous word start\n* \u003ckbd\u003eAlt+Right\u003c/kbd\u003e  Cursor to next word end\n* \u003ckbd\u003eFn+Left\u003c/kbd\u003e    Cursor to line start\n* \u003ckbd\u003eFn+Right\u003c/kbd\u003e   Cursor to line end\n\n**delete**\n\n* \u003ckbd\u003eAlt+Del\u003c/kbd\u003e    Delete to previous word bound from cursor\n* \u003ckbd\u003eCtrl+W\u003c/kbd\u003e     Alias of Alt+Del\n* \u003ckbd\u003eCtrl+U\u003c/kbd\u003e     Delete to line start from cursor\n\n**interrupt**\n\n* \u003ckbd\u003eCtrl+C\u003c/kbd\u003e     Clear line; signal an exit\n* \u003ckbd\u003eCtrl+D\u003c/kbd\u003e     Immediately terminate REPL\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagr%2Fsol-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagr%2Fsol-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagr%2Fsol-repl/lists"}