{"id":25019041,"url":"https://github.com/varuns2002/dart-interactive_print","last_synced_at":"2026-05-09T14:38:17.400Z","repository":{"id":56833073,"uuid":"383038892","full_name":"VarunS2002/Dart-interactive_print","owner":"VarunS2002","description":"A Dart library to simulate print() without adding a trailing newline for both Native and Web.","archived":false,"fork":false,"pushed_at":"2021-07-05T07:30:43.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T11:20:43.523Z","etag":null,"topics":["console-log","dart","flutter","interactive","native","print","web","without-linebreak","without-newline"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/interactive_print","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VarunS2002.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":"2021-07-05T06:35:35.000Z","updated_at":"2022-04-18T07:33:11.000Z","dependencies_parsed_at":"2022-09-13T08:40:32.064Z","dependency_job_id":null,"html_url":"https://github.com/VarunS2002/Dart-interactive_print","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/VarunS2002%2FDart-interactive_print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunS2002%2FDart-interactive_print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunS2002%2FDart-interactive_print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunS2002%2FDart-interactive_print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VarunS2002","download_url":"https://codeload.github.com/VarunS2002/Dart-interactive_print/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246297343,"owners_count":20754771,"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":["console-log","dart","flutter","interactive","native","print","web","without-linebreak","without-newline"],"created_at":"2025-02-05T11:19:51.541Z","updated_at":"2026-05-09T14:38:17.361Z","avatar_url":"https://github.com/VarunS2002.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dart-interactive_print\n\nA Dart library to simulate print() without adding a trailing newline for both Native and Web.\n\n\u003e [![Latest_Release](https://img.shields.io/pub/v/interactive_print)](https://pub.dev/packages/interactive_print)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n## [Changelog](https://github.com/VarunS2002/Dart-interactive_print/blob/main/interactive_print/CHANGELOG.md)\n\n## Usage\n\n```yaml\ndependencies:\n  interactive_print: ^1.0.0\n```\n\nA simple usage example:\n\n```dart\nimport 'package:interactive_print/interactive_print.dart';\n\nvoid main() {\n  write('Hello');\n  writeln('There');\n  write('General Kenobi');\n  writeln('.');\n}\n```\n\n## Objective of this package\n\nThe `print()` function in Dart always adds a newline to the end, so you cannot print character by character. This is\nparticularly useful if you want to have a delay between printing characters or if you want to construct a line\ndynamically using characters at runtime. Dart has 2 supported platforms namely Native and Web. On Native, you can\nuse `stdout.write()` to print without a newline, however this breaks support for Web as this function is not supported.\nWeb also doesn't have any method to print without a newline but this behaviour can be simulated\nlike [this](https://stackoverflow.com/a/41817778/13978447). This Dart library provides its own `write()` and `writeln()`\nfunction which will dynamically use `stdout.write()` or the `console.log()` trick based on the platform you are running\non. More discussion [here](https://github.com/dart-lang/sdk/issues/46383).\n\n## Note\n\n- May not work correctly if you run your application in debug mode.\n\n- If you face any issue or have suggestions then feel free to open an issue on GitHub.\n\n- Majority of the code was contributed by [lrhn](https://github.com/lrhn). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaruns2002%2Fdart-interactive_print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaruns2002%2Fdart-interactive_print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaruns2002%2Fdart-interactive_print/lists"}