{"id":21183433,"url":"https://github.com/jgleitz/string-notation","last_synced_at":"2025-03-14T19:46:32.317Z","repository":{"id":38296687,"uuid":"232886761","full_name":"jGleitz/string-notation","owner":"jGleitz","description":"Convert between different string notations commonly found in programming","archived":false,"fork":false,"pushed_at":"2025-02-25T16:57:38.000Z","size":1503,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T17:39:32.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/jGleitz.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":"2020-01-09T19:21:28.000Z","updated_at":"2025-02-25T16:57:19.000Z","dependencies_parsed_at":"2023-10-05T06:55:41.383Z","dependency_job_id":"126d8aab-1c32-4e4c-81de-6237c31fd222","html_url":"https://github.com/jGleitz/string-notation","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Fstring-notation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Fstring-notation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Fstring-notation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jGleitz%2Fstring-notation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jGleitz","download_url":"https://codeload.github.com/jGleitz/string-notation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639400,"owners_count":20323505,"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":[],"created_at":"2024-11-20T18:00:22.666Z","updated_at":"2025-03-14T19:46:32.293Z","avatar_url":"https://github.com/jGleitz.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string-notation [![CI Status](https://github.com/jGleitz/string-notation/workflows/CI/badge.svg)](https://github.com/jGleitz/string-notation/actions) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.joshuagleitze/string-notation/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.joshuagleitze/string-notation)\n_Convert between different string notations commonly found in programming._\nUseful, for example, to build identifiers when generating code.\nAlso includes notations to build valid Java type or member names. \n\n#### [API Documentation](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/)\n\n## Notations\nWe support the following notations:\n\n * General Programming\n    * [LowerCamelCase](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-lower-camel-case/), e.g. `thisIsMyString`\n    * [UpperCamelCase](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-upper-camel-case/), e.g. `ThisIsMyString`\n    * [SnakeCase](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-snake-case/), e.g. `this_is_MY_String`\n    * [ScreamingSnakeCase](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-screaming-snake-case/), e.g. `THIS_IS_MY_STRING`\n * Java\n   * [JavaMemberName](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-java-member-name/), e.g. `thisIsMyString`\n   * [JavaTypeName](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-java-type-name/), e.g. `ThisIsMyString`\n   * [JavaConstantName](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-java-constant-name/), e.g. `THIS_IS_MY_STRING`\n   * [JavaPackageName](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-java-package-name/), e.g. `this.is.MY.String`\n   * [JavaPackagePart](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-java-package-part/), e.g. `thisismystring`\n * Miscellaneous    \n    * [NormalWords](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-normal-words/), e.g. `this is MY String`\n\n## Usage\n`string-notation` converts Strings from their notation into a [Word](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-word/), which is a notation-agnostic representation.\n[Words](https://jgleitz.github.io/string-notation/string-notation/de.joshuagleitze.stringnotation/-word/) can then be transformed into Strings in a notation again.\n\n### Kotlin\n\n```kotlin\nimport de.joshuagleitze.stringnotation.LowerCamelCase\nimport de.joshuagleitze.stringnotation.ScreamingSnakeCase\nimport de.joshuagleitze.stringnotation.fromNotation\n\n// myVariable -\u003e MY_VARIABLE\n\"myVariable\".fromNotation(LowerCamelCase).toNotation(ScreamingSnakeCase)\n```\n\n```kotlin\nimport de.joshuagleitze.stringnotation.JavaTypeName\nimport de.joshuagleitze.stringnotation.NormalWords\nimport de.joshuagleitze.stringnotation.fromNotation\n\n// 1 Type Name 4 You! -\u003e TypeName4You\n\"1 Type Name 4 You!\".fromNotation(NormalWords).toNotation(JavaTypeName)\n```\n\n\n### Java\n\n```java\nimport de.joshuagleitze.stringnotation.LowerCamelCase;\nimport de.joshuagleitze.stringnotation.UpperCamelCase;\nimport static de.joshuagleitze.stringnotation.StringToWord.fromNotation;\n\n// myVariable -\u003e MY_VARIABLE\nfromNotation(\"myVariable\", UpperCamelCase.INSTANCE).toNotation(LowerCamelCase.INSTANCE);\n```\n\n```java\nimport de.joshuagleitze.stringnotation.JavaTypeName;\nimport de.joshuagleitze.stringnotation.NormalWords;\nimport static de.joshuagleitze.stringnotation.StringToWord.fromNotation;\n\n// 1 Type Name 4 You! -\u003e TypeName4You\nfromNotation(\"1 Type Name 4 You!\", NormalWords.INSTANCE).toNotation(JavaTypeName.INSTANCE);\n```\n\n## [Contributions welcome](http://contributionswelcome.org/)\n\nAll contributions (no matter if small) are always welcome.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgleitz%2Fstring-notation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgleitz%2Fstring-notation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgleitz%2Fstring-notation/lists"}