{"id":20601394,"url":"https://github.com/tmccarthy/tmmutils","last_synced_at":"2026-02-03T18:02:13.024Z","repository":{"id":57715043,"uuid":"66444012","full_name":"tmccarthy/tmmUtils","owner":"tmccarthy","description":"Some Scala utilities","archived":false,"fork":false,"pushed_at":"2024-09-03T21:37:34.000Z","size":612,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T10:24:21.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmccarthy.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":"2016-08-24T08:02:58.000Z","updated_at":"2024-12-09T19:54:18.000Z","dependencies_parsed_at":"2022-09-02T22:01:31.811Z","dependency_job_id":null,"html_url":"https://github.com/tmccarthy/tmmUtils","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/tmccarthy/tmmUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmccarthy%2FtmmUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmccarthy%2FtmmUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmccarthy%2FtmmUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmccarthy%2FtmmUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmccarthy","download_url":"https://codeload.github.com/tmccarthy/tmmUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmccarthy%2FtmmUtils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262753165,"owners_count":23358881,"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-16T09:09:52.973Z","updated_at":"2026-02-03T18:02:07.995Z","avatar_url":"https://github.com/tmccarthy.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `tmmUtils`\n[![Continuous Integration](https://github.com/tmccarthy/tmmUtils/actions/workflows/ci.yml/badge.svg)](https://github.com/tmccarthy/tmmUtils/actions/workflows/ci.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/au.id.tmm.tmm-utils/tmm-utils-syntax_2.13.svg)](https://repo.maven.apache.org/maven2/au/id/tmm/tmm-utils/tmm-utils-syntax_2.13/)\n\nA bunch of Scala utilities I've found myself writing that I haven't (yet) decided to spin out into \ntheir own projects.\n\n```scala\nval tmmUtilsVersion = \"0.9.2\"\n\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-cats\"               % tmmUtilsVersion        // Cats utilities\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-cats-effect\"        % tmmUtilsVersion        // Cats-effect utilities\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-circe\"              % tmmUtilsVersion        // Circe hashing\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-errors\"             % tmmUtilsVersion        // Errors\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-syntax\"             % tmmUtilsVersion        // Syntax utils\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-testing-core\"       % tmmUtilsVersion % Test // Test utilities\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-testing-cats\"       % tmmUtilsVersion % Test // Cats instances for tests\nlibraryDependencies += \"au.id.tmm.tmm-utils\" %% \"tmm-utils-testing-scalacheck\" % tmmUtilsVersion % Test // Scalacheck instances for tests\n```\n\n## Cats\n\nSome utilities for interaction with the [`cats-core`](https://github.com/typelevel/cats) library\n\n## Errors\n\nSome type aliases and extension methods for dealing with types like `Either[Throwable, A]`.\n\n## Circe\n\nSome utilities relating to [`circe`](https://github.com/circe/circe)\n\n## Testing\n\n* `JreVersionDependentFlatSpec`, which provides utilities for ignoring tests based on the Java version\n* `au.id.tmm.utilities.testing.syntax`, which provides syntax to replace the old `right.get` method on `Either`\n* A set of ADTs that might be useful as test data (`Animal`, `Fruit`, `CoinToss`, `Planet` and `TrafficLight`)\n\n## Syntax\n\nSome general syntax extensions.\n\n#### Tuple syntax\n\n```scala\n\nimport au.id.tmm.utilities.syntax.tuples._\n\nval tuple: String -\u003e Int = \"hello\" -\u003e 5\n\nval tuples: List[String -\u003e Int] = List(\n  \"hello\" -\u003e 1,\n  \"world\" -\u003e 2,\n)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmccarthy%2Ftmmutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmccarthy%2Ftmmutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmccarthy%2Ftmmutils/lists"}