{"id":32285866,"url":"https://github.com/thitlwincoder/lazy_string","last_synced_at":"2025-10-23T01:52:44.858Z","repository":{"id":56833762,"uuid":"350425094","full_name":"thitlwincoder/lazy_string","owner":"thitlwincoder","description":"This package can help people who are lazier and beginner to the faster when they use String and make a lot of function.","archived":false,"fork":false,"pushed_at":"2023-07-12T02:20:01.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-08-20T22:29:22.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/lazy_string","language":"Dart","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/thitlwincoder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"thitlwincoder","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null}},"created_at":"2021-03-22T17:06:46.000Z","updated_at":"2021-12-29T03:31:56.000Z","dependencies_parsed_at":"2022-09-13T08:42:05.188Z","dependency_job_id":null,"html_url":"https://github.com/thitlwincoder/lazy_string","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/thitlwincoder/lazy_string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thitlwincoder%2Flazy_string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thitlwincoder%2Flazy_string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thitlwincoder%2Flazy_string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thitlwincoder%2Flazy_string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thitlwincoder","download_url":"https://codeload.github.com/thitlwincoder/lazy_string/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thitlwincoder%2Flazy_string/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280546411,"owners_count":26348723,"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-10-22T02:00:06.515Z","response_time":63,"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":"2025-10-23T01:52:41.066Z","updated_at":"2025-10-23T01:52:44.854Z","avatar_url":"https://github.com/thitlwincoder.png","language":"Dart","funding_links":["https://ko-fi.com/thitlwincoder"],"categories":[],"sub_categories":[],"readme":"# lazy_string\n\n[![pub package](https://img.shields.io/pub/v/lazy_string.svg?logo=dart\u0026logoColor=00b9fc)](https://pub.dev/packages/lazy_string)\n[![Last Commits](https://img.shields.io/github/last-commit/thitlwincoder/lazy_string?logo=git\u0026logoColor=white)](https://github.com/thitlwincoder/lazy_string/commits/master)\n[![GitHub repo size](https://img.shields.io/github/repo-size/thitlwincoder/lazy_string)](https://github.com/thitlwincoder/lazy_string)\n[![License](https://img.shields.io/github/license/thitlwincoder/lazy_string?logo=open-source-initiative\u0026logoColor=green)](https://github.com/thitlwincoder/lazy_string/blob/master/LICENSE)\n\u003cbr\u003e\n[![Uploaded By](https://img.shields.io/badge/uploaded%20by-thitlwincoder-blue)](https://github.com/thitlwincoder)\n\nThis package can help people who are _lazier_ and _beginner_ to the faster when they use `String` and make a lot of function.\n\n## Usage\n\n### camelize(String text) =\u003e String\n\nConverts underscored or dasherized String to a camelized one. Begins with a lower case letter unless it starts with an underscore, dash or an upper case letter.\n\n```dart\nLazyString.camelize('lazy-string');\n// =\u003e \"lazyString\"\n\nLazyString.camelize('-lazy-string');\n// =\u003e \"LazyString\"\n\nLazyString.camelize('_lazy_string');\n// =\u003e \"LazyString\"\n\nLazyString.camelize('Lazy_string');\n// =\u003e \"LazyString\"\n```\n\n### underscored(String text) =\u003e String\n\nConverts a camelized or dasherized String into an underscored one.\n\n```dart\nLazyString.underscored('LazyString');\n// =\u003e \"lazy_string\"\n```\n\n### dasherize(String text) =\u003e String\n\nConverts a underscored or camelized String into an dasherized one.\n\n```dart\nLazyString.dasherize('LazyString');\n// =\u003e \"-lazy-string\"\n```\n\n### humanize(String text) =\u003e String\n\nConverts an underscored, camelized, or dasherized String into a humanized one. Also removes beginning and ending whitespace, and removes the postfix '_id'.\n\n```dart\nLazyString.humanize('  capitalize dash-CamelCase_underscore trim  ');\n// =\u003e \"Capitalize dash camel case underscore trim\"\n```\n\n### words(String text, {String delimiter}) =\u003e List\\\u003cString\\\u003e\n\nSplit string by delimiter (String or Pattern), /\\s+/ by default.\n\n```dart\nLazyString.words(\"   lazy   string   \");\n// =\u003e [\"lazy\", \"string\"]\n\nLazyString.words(\"lazy_string\", delimiter: \"_\");\n// =\u003e [\"lazy\", \"string\"]\n\nLazyString.words(\"   \")\n// =\u003e []\n```\n\n### chars(String text) =\u003e List\\\u003cString\\\u003e\n\n\n```dart\nLazyString.chars('lazystring');\n// =\u003e [\"l\", \"a\", \"z\", \"y\", \"s\", \"t\", \"r\", \"i\", \"n\", \"g\"]\n\n```\n\n### repeat(String text, {int count, String separator}) =\u003e String\n\nRepeats a string count times.\n\n```dart\nLazyString.repeat(\"lazy\", count: 3);\n// =\u003e \"lazylazylazy\"\n\nLazyString.repeat('lazy', count: 2, separator: 'string');\n// =\u003e \"lazystringlazy\"\n```\n\n### count(String text, String char) =\u003e int\n\nReturns int of occurrences of char in String.\n\n```dart\nLazyString.count(\"Hello world\", \"l\");\n// =\u003e 3\n```\n\n### reverse(String text) =\u003e String\n\nReturn reversed string.\n\n```dart\nLazyString.reverse('Music 𝄞 make happy');\n// =\u003e \"yppah ekam 𝄞 cisuM\"\n```\n\n### clean(String text) =\u003e String\n\nTrim and replace multiple spaces with a single space.\n\n```dart\nLazyString.clean('   lazy    string   '); \n// =\u003e \"lazy string\"\n```\n\n### classify(String text) =\u003e String\n\nConverts string to camelized class name. First letter is always upper case\n\n```dart\nLazyString.classify('lazy_string'); \n// =\u003e \"LazyString\"\n```\n\n## Contribution\n\nFeel free to file an [issue](https://github.com/thitlwincoder/lazy_string/issues/new) if you find a problem or make pull requests.\n\nAll contributions are welcome :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthitlwincoder%2Flazy_string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthitlwincoder%2Flazy_string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthitlwincoder%2Flazy_string/lists"}