{"id":15706673,"url":"https://github.com/sibelius/await-node-repl","last_synced_at":"2026-02-10T11:34:58.078Z","repository":{"id":71333453,"uuid":"78461259","full_name":"sibelius/await-node-repl","owner":"sibelius","description":"Example of how to setup a repl with await syntax support","archived":false,"fork":false,"pushed_at":"2017-01-09T19:38:32.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T20:37:17.321Z","etag":null,"topics":["async-await","node","repl"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sibelius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-01-09T19:28:17.000Z","updated_at":"2018-05-30T08:03:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"737ca677-5b39-4269-b4ac-5ecec565ed22","html_url":"https://github.com/sibelius/await-node-repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sibelius/await-node-repl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fawait-node-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fawait-node-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fawait-node-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fawait-node-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sibelius","download_url":"https://codeload.github.com/sibelius/await-node-repl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibelius%2Fawait-node-repl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29298507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T10:40:02.018Z","status":"ssl_error","status_checked_at":"2026-02-10T10:38:28.459Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["async-await","node","repl"],"created_at":"2024-10-03T20:26:18.853Z","updated_at":"2026-02-10T11:34:58.046Z","avatar_url":"https://github.com/sibelius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Await Node Repl\n\n## Blog post\nhttps://medium.com/@sibelius/node-repl-with-await-syntax-6e351e347292#.cnqogx385\n\n## Setup\n\nFirst, install deps\n\n```\nyarn\n```\n\nThen run the repl and start hacking\n\n```\nyarn run repl\n```\n\n## Examples\n\n### Do a fetch in a website\n```jsx\n\u003e const response = await fetch('http://example.com');\n\u003e const data = await response.json();\n```\n\n### Work with database models\n```jsx\n\u003e await connectDatabase();\n\u003e const user = await User.find(); // get all users\n```\n\n### Play with a package\n```jsx\n\u003e import faker from 'faker'\n\u003e faker.internet.password()\n```\n\n### Add some data and functions to repl context\n\nadd something like this to repl.js\n\n```jsx\nrepl.context.myfunc = myfunc;\n```\n\ntest it\n\n```jsx\n\u003e myFunc()\n```\n\n\\o/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fawait-node-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsibelius%2Fawait-node-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibelius%2Fawait-node-repl/lists"}