{"id":15297605,"url":"https://github.com/marco-eckstein/kotlin-lib","last_synced_at":"2025-04-13T23:23:19.002Z","repository":{"id":57726464,"uuid":"344286939","full_name":"marco-eckstein/kotlin-lib","owner":"marco-eckstein","description":"A general-purpose multiplatform library. Implemented in Kotlin, usable also from Java, JavaScript and more.","archived":false,"fork":false,"pushed_at":"2022-12-29T05:04:30.000Z","size":193,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T13:40:04.539Z","etag":null,"topics":["java","javascript","jvm","kotlin","kotlin-multiplatform","library","utilities"],"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/marco-eckstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-03T22:59:23.000Z","updated_at":"2023-09-21T06:42:55.000Z","dependencies_parsed_at":"2023-01-31T08:01:21.462Z","dependency_job_id":null,"html_url":"https://github.com/marco-eckstein/kotlin-lib","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-eckstein%2Fkotlin-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-eckstein%2Fkotlin-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-eckstein%2Fkotlin-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-eckstein%2Fkotlin-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marco-eckstein","download_url":"https://codeload.github.com/marco-eckstein/kotlin-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795181,"owners_count":21162726,"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":["java","javascript","jvm","kotlin","kotlin-multiplatform","library","utilities"],"created_at":"2024-09-30T19:18:28.040Z","updated_at":"2025-04-13T23:23:18.967Z","avatar_url":"https://github.com/marco-eckstein.png","language":"Kotlin","readme":"# kotlin-lib\n\n[![Actions Status](\nhttps://github.com/marco-eckstein/kotlin-lib/workflows/Java%20CI%20with%20Gradle/badge.svg\n)](\nhttps://github.com/marco-eckstein/kotlin-lib/actions?query=workflow%3A\"Java+CI+with+Gradle\"\n)\n\n[![Maven Central Status](\nhttps://maven-badges.herokuapp.com/maven-central/com.marcoeckstein/kotlin-lib/badge.svg\n)](\nhttps://search.maven.org/search?q=g:com.marcoeckstein%20a:kotlin-lib*\n)\n[![javadoc](\nhttps://javadoc.io/badge2/com.marcoeckstein/kotlin-lib/javadoc.svg\n)](\nhttps://javadoc.io/doc/com.marcoeckstein/kotlin-lib\n)\n\n[![npm version](https://badge.fury.io/js/%40marco-eckstein%2Fkotlin-lib.svg)](\nhttps://badge.fury.io/js/%40marco-eckstein%2Fkotlin-lib\n)\n[![npm downloads](https://img.shields.io/npm/dt/@marco-eckstein/kotlin-lib.svg)](\nhttps://npm-stat.com/charts.html?package=%40marco-eckstein%2Fkotlin-lib\u0026from=2022-12-20\n)\n\nA general-purpose multiplatform library. Implemented in Kotlin, usable also from Java, JavaScript/TypeScript\nand more.\n\nNote however that due to the current nature of Kotlin Multiplatform, many parts of the library are not\navailable from regular JavaScript/TypeScript projects.\n\nThere are [Kotlin API docs for all platforms](https://javadoc.io/doc/com.marcoeckstein/kotlin-lib).\n\n## Usage with JVM\n\nYou can use this library with any language that runs on the Java Virtual Machine: Java, Kotlin, Scala etc.\n\nThe build artifacts have been published to the\n[Maven Central Repository](https://search.maven.org/search?q=g:com.marcoeckstein%20a:kotlin-lib*).\n\n### Maven\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.marcoeckstein\u003c/groupId\u003e\n    \u003cartifactId\u003ekotlin-lib-jvm\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle (Kotlin DSL)\n\n```kotlin\nimplementation(\"com.marcoeckstein:kotlin-lib:$version\")\n```\n\n### Gradle (Groovy DSL)\n\n```groovy\nimplementation 'com.marcoeckstein:kotlin-lib:$version'\n```\n\n## Usage with Kotlin Multiplatform\n\nUse the same snippets as for a Gradle JVM project (see above).\n\n## Usage with JavaScript/TypeScript\n\n```bash\nnpm install --save @marco-eckstein/kotlin-lib@$version\n```\n\n```TypeScript\nimport * as kotlinLib from \"@marco-eckstein/kotlin-lib\";\n\n# Kotlin multiplatform exports full namespaces:\nconst klib = kotlinLib.com.marcoeckstein.klib\nklib.kotlin.stringify(undefined)\n```\n\n## Usage with C, Objective-C etc.\n\nI do not actively support this, but you should be able to build native binaries of this project yourself\nusing Gradle.\nPlease see the [Kotlin Multiplatform docs](https://kotlinlang.org/docs/multiplatform.html).\n\n## Development\n\n### Build locally\n\n```bash\ngradlew build\n```\n\n### Publish\n\n*These notes are primarily for myself.*\n\n```bash\ngradlew publish -PsonatypeStagingPassword=\u003cpassword\u003e\n```\n\nThis task will include these steps:\n\n- Sign the artifacts\\\n  A prompt will ask for the password that encrypts the GnuPG key configured in `gradle.properties`.\n- Publish the JavaScript package `build\\packages\\js\\` to [NPM](https://www.npmjs.com/)\\\n  You need to be logged in to NPM.\n- Upload the Maven artifacts (`.jar` files etc.) to the staging repository at\n  [OSS Repository Hosting](https://oss.sonatype.org/) that belongs to the username configured in\n  `gradle.properties`.\n\nThese steps need to be performed manually:\n\n- Login to [OSS Repository Hosting](https://oss.sonatype.org/)\n- Review the artifacts\n- *Close* and *Release* the repository. This will publish the artifacts to the\n  [Maven Central Repository](https://search.maven.org/).\n  Docs will appear automatically at [javadoc.io](https://www.javadoc.io/).\n\nMore info at: https://central.sonatype.org/publish/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-eckstein%2Fkotlin-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarco-eckstein%2Fkotlin-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-eckstein%2Fkotlin-lib/lists"}