{"id":16434443,"url":"https://github.com/zce/ooh-node","last_synced_at":"2025-09-13T19:26:11.392Z","repository":{"id":48000758,"uuid":"75935795","full_name":"zce/ooh-node","owner":"zce","description":"Ooh node~","archived":false,"fork":false,"pushed_at":"2021-08-11T04:00:06.000Z","size":80,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T12:45:30.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zce.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":"2016-12-08T12:29:50.000Z","updated_at":"2019-05-24T01:37:06.000Z","dependencies_parsed_at":"2022-08-12T16:20:17.069Z","dependency_job_id":null,"html_url":"https://github.com/zce/ooh-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zce/ooh-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fooh-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fooh-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fooh-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fooh-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zce","download_url":"https://codeload.github.com/zce/ooh-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fooh-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275015904,"owners_count":25390969,"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-13T02:00:10.085Z","response_time":70,"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":[],"created_at":"2024-10-11T08:49:09.999Z","updated_at":"2025-09-13T19:26:11.350Z","avatar_url":"https://github.com/zce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ooh-node\n\nOoh node~\n\n\u003e No callback in node\n\n## Console Patchs\n\n- `console.read()`\n- `console.readline()`\n- `console.write()`\n- `console.writeline()`\n- `console.clear()`\n- `console.colors`\n\n## Requirement\n\nnode \u003e=7.6.0\n\n## Installation\n\n```shell\n$ yarn global add ooh-node\n# or npm\n$ npm i ooh-node -g\n```\n\n## Usage\n\n```javascript\n// example.js\nmodule.exports = async function (args) {\n  while (true) {\n    console.clear()\n    console.write(console.colors.gray('Input your age: '))\n\n    const res = await console.readline()\n    console.log(res)\n\n    if (res === 'q' || res === 'quit' || res === 'exit') {\n      console.writeline(console.colors.green('Bye bye!'))\n      break\n    }\n\n    const age = parseInt(res)\n    if (age) {\n      if (age \u003c 18) {\n        console.writeline(console.colors.blue('You are just too young!'))\n      } else {\n        console.writeline(console.colors.bgYellow('Ooooooooook!'))\n      }\n    } else {\n      console.writeline(console.colors.red('Input is invalidated.'))\n    }\n    console.write(console.colors.gray('Press any key to continue.'))\n\n    await console.read()\n  }\n}\n\n```\n\n```shell\n$ ooh-node example.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Fooh-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzce%2Fooh-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Fooh-node/lists"}