{"id":16401511,"url":"https://github.com/plugfox/multiline","last_synced_at":"2025-10-26T16:31:02.090Z","repository":{"id":53566055,"uuid":"258635852","full_name":"PlugFox/multiline","owner":"PlugFox","description":"Provides convenient access to multiline String records with method extensions.","archived":false,"fork":false,"pushed_at":"2022-08-18T19:20:02.000Z","size":254,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T21:34:25.664Z","etag":null,"topics":["coverage","multiline","pipeline","symbols","wtfpl"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/multiline","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PlugFox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-24T22:13:38.000Z","updated_at":"2022-12-13T13:25:09.000Z","dependencies_parsed_at":"2022-08-26T05:01:14.474Z","dependency_job_id":null,"html_url":"https://github.com/PlugFox/multiline","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/PlugFox%2Fmultiline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fmultiline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fmultiline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fmultiline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlugFox","download_url":"https://codeload.github.com/PlugFox/multiline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238366821,"owners_count":19460191,"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":["coverage","multiline","pipeline","symbols","wtfpl"],"created_at":"2024-10-11T05:43:20.049Z","updated_at":"2025-10-26T16:31:01.713Z","avatar_url":"https://github.com/PlugFox.png","language":"Dart","readme":"# multiline  \n\n![](https://github.com/PlugFox/multiline/raw/master/.img/logo.png)  \n  \n[![Actions Status](https://github.com/PlugFox/multiline/workflows/multiline/badge.svg)](https://github.com/PlugFox/multiline/actions)\n[![Coverage](https://codecov.io/gh/PlugFox/multiline/branch/master/graph/badge.svg)](https://codecov.io/gh/PlugFox/multiline)\n[![Pub](https://img.shields.io/pub/v/multiline.svg)](https://pub.dev/packages/multiline)\n[![Code size](https://img.shields.io/github/languages/code-size/plugfox/multiline?logo=github\u0026logoColor=white)](https://github.com/plugfox/multiline)\n[![License: WTFPL](https://img.shields.io/badge/License-WTFPL-brightgreen.svg)](https://en.wikipedia.org/wiki/WTFPL)\n[![effective_dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)\n[![GitHub stars](https://img.shields.io/github/stars/PlugFox/multiline?style=social)](https://github.com/PlugFox/multiline/)  \n  \n  \n## About  \n  \nProvides convenient access to multiline String records with method extensions.  \nUseful for templates, mockups and SQL queries.  \n  \nJust use the symbol \"`|`\" to indicate the beginning of a line.  \nBeautiful code formatting using some useful extensions to the String methods.  \n  \nAvailable method extensions:  \n  \n  + `multiline()`      - return formatted with pipeline symbol \"`|`\" `String`.  \n  \n  + `multilineSplit()` - splits the string and returns a `Iterable\u003cString\u003e` of substrings.  \n  \nYou can use custom \"pipeline\" and \"join\" symbols.  \n  \n  \n## For example  \n  \n```dart\nimport 'package:multiline/multiline.dart'; // \u003c= import package\n\nvoid main() {\n  /// Return formatted with pipeline symbol \"`|`\" [String].\n  final string =\n    '''\n    |/*\n    | * List of books and the number of\n    | * authors associated with each book\n    | */\n    |SELECT\n    |      `books`.`title` AS `Title`,\n    |       count(*)       AS `Authors`\n    |FROM  `books`\n    |JOIN  `authors`\n    |  ON  `books`.`isbn` = `authors`.`isbn`\n    |GROUP BY\n    |      `books`.`title`\n    |ORDER BY\n    |      `books`.`title` ASC\n    |;\n    '''.multiline();\n  print(string);\n\n  /// Splits the string and returns a [Iterable] of substrings.\n  final iterable =\n    '''\n    | * One\n    | * Two\n    | * Three\n    '''.multilineSplit();\n  iterable.forEach(print);\n}\n```\n  \n  \n## Coverage  \n  \n[![](https://codecov.io/gh/PlugFox/multiline/branch/master/graphs/sunburst.svg)](https://codecov.io/gh/PlugFox/multiline/branch/master)  \n  \n  \n## Changelog  \n  \nRefer to the [Changelog](https://github.com/plugfox/multiline/blob/master/CHANGELOG.md) to get all release notes.  \n  \n  \n## Maintainers  \n  \n[Plague Fox](https://plugfox.dev)  \n  \n  \n## License  \n  \n[WTFPL](https://github.com/plugfox/multiline/blob/master/LICENSE)  \n  \n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Fmultiline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplugfox%2Fmultiline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Fmultiline/lists"}