{"id":15057615,"url":"https://github.com/mildc055ee/consoleinput.jl","last_synced_at":"2026-01-03T04:40:11.669Z","repository":{"id":61797568,"uuid":"190400483","full_name":"mildc055ee/ConsoleInput.jl","owner":"mildc055ee","description":"minimal stdin wrapper ","archived":false,"fork":false,"pushed_at":"2020-06-20T10:01:55.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-20T17:29:39.254Z","etag":null,"topics":["julia"],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/mildc055ee.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":"2019-06-05T13:30:53.000Z","updated_at":"2020-06-20T10:01:58.000Z","dependencies_parsed_at":"2022-10-21T11:15:15.878Z","dependency_job_id":null,"html_url":"https://github.com/mildc055ee/ConsoleInput.jl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildc055ee%2FConsoleInput.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildc055ee%2FConsoleInput.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildc055ee%2FConsoleInput.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildc055ee%2FConsoleInput.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mildc055ee","download_url":"https://codeload.github.com/mildc055ee/ConsoleInput.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243761929,"owners_count":20343970,"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":["julia"],"created_at":"2024-09-24T22:09:09.968Z","updated_at":"2026-01-03T04:40:11.620Z","avatar_url":"https://github.com/mildc055ee.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConsoleInput.jl\n[![Build Status](https://travis-ci.com/mildc055ee/ConsoleInput.jl.svg?branch=master)](https://travis-ci.com/mildc055ee/ConsoleInput.jl)\n[![codecov](https://codecov.io/gh/mildc055ee/ConsoleInput.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/mildc055ee/ConsoleInput.jl)\n  \nminimal stdin wrapper for julia.\n\n## APIs\nThis module uses original type `DlmType` defined as below.\n```julia\nDlmType = Union{\n    AbscractChar,\n    AbscractString,\n    Regex\n}\n```\nDefault delimiter is `\" \"`.You can indicate specific delimiter like `readXXX(delimiter=\",\")`.\n  \n**Note** This packages function returns a single value when args is only one. else returns array.\n### `readInt(io::IO=stdin, delimiter::DlmType=\" \")`\nparse inputs to Int.\n```julia\nreadInt() #\u003c-- 1\n#--\u003e 1\n\nreadInt() #\u003c-- 1 2 3 4 5\n#--\u003e [1, 2, 3, 4, 5]\n\nreadInt(delimiter=',') #\u003c--6,7,8,9,10\n#--\u003e [6, 7, 8, 9, 10]\n```\n\n### `readString(io::IO=stdin, delimiter::DlmType=\" \")`\nparse inputs to string.\n```julia\nreadString() #\u003c-- Lorem\n#--\u003e \"Lorem\"\n\nreadString() #\u003c-- Lorem ipsum es\n#--\u003e[\"Lorem\", \"ipsum\", \"es\"]\n```\n### `readGeneral(type, io::IO=stdin, delimiter::DlmType=\" \")`\nparse inputs to any types you want. First argument MUST be a type name.\n```julia\nreadGeneral(Complex{Fload64}) #\u003c--1.2e-3+4j -9+6.8i 0.0004 90.5im\n#--\u003e[0.0012+4.0im, -9.0+6.8im, 0.0004+0.0im, 0.0+90.5im]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildc055ee%2Fconsoleinput.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmildc055ee%2Fconsoleinput.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildc055ee%2Fconsoleinput.jl/lists"}