{"id":21810917,"url":"https://github.com/vshymanskyy/espruino-await","last_synced_at":"2025-04-13T22:11:47.966Z","repository":{"id":145664743,"uuid":"123343725","full_name":"vshymanskyy/espruino-await","owner":"vshymanskyy","description":"async/await example for Espruino","archived":false,"fork":false,"pushed_at":"2018-03-01T11:15:55.000Z","size":118,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T17:20:37.915Z","etag":null,"topics":["async-await","babel","espruino","example","rollup","template"],"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/vshymanskyy.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}},"created_at":"2018-02-28T21:18:40.000Z","updated_at":"2024-12-10T12:36:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"28bbc68f-39ce-414a-b494-0b901178410f","html_url":"https://github.com/vshymanskyy/espruino-await","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/vshymanskyy%2Fespruino-await","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshymanskyy%2Fespruino-await/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshymanskyy%2Fespruino-await/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshymanskyy%2Fespruino-await/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vshymanskyy","download_url":"https://codeload.github.com/vshymanskyy/espruino-await/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788917,"owners_count":21161727,"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":["async-await","babel","espruino","example","rollup","template"],"created_at":"2024-11-27T13:38:44.415Z","updated_at":"2025-04-13T22:11:47.958Z","avatar_url":"https://github.com/vshymanskyy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# espruino-await\n\nThis uses `rollup`, `babel` and `fast-async` to show how async/await can be used with `Espruino`.\n\nVerified with **Puck.js**, **Espruino Pico 1.3**, **ESP32**, Espruino v1.96\n\n## Howto\n\n```bash\nnpm install\n\n# Bundle the source code and upload it to the board\nnpm start --production\n```\n![Preview](/docs/demo.png)\n\nSome other commands:\n```\n# Bundle in development mode\nnpm run build\n\n# Bundle in production mode (minified)\nnpm run build --production\n\n# Open device console\nnpm run console\n```\n\n**Note:** this currently uses a Makefile, so can have trouble uploading to the board on Windows. This can be easily tweaked.\n\n## Related issues\n\n- [ ] [async/await support](https://github.com/espruino/Espruino/issues/1272)\n- [ ] [ES5/ES6 wishlist](https://github.com/espruino/Espruino/issues/1302)\n- [ ] [Maximum number of scopes exceeded](https://github.com/espruino/Espruino/issues/948)\n- [ ] `fast-async` works, while `transform-regenerator` chashes the interpreter (on all boards)\n- [ ] It is mandatory to use `hoist_funs` and `hoist_vars` for uglify. Espruino does not handle hoisted transpiled code well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshymanskyy%2Fespruino-await","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvshymanskyy%2Fespruino-await","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshymanskyy%2Fespruino-await/lists"}