KompKit Core is a small cross-platform utility library for Web (TypeScript), Android (Kotlin), and Flutter (Dart).
Status: V0.3.1-alpha.
npm i kompkit-coreAdd to your pubspec.yaml:
dependencies:
kompkit_core: ^0.4.0-alpha.0Then run:
flutter pub getNot yet published to Maven. Use a local project reference for now.
dependencies {
implementation(project(":kompkit-core"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
}Run from the repository root:
# Build web package
npm run build
# Run tests for web and android
npm run test| Utility | Description |
|---|---|
debounce |
Debounce a function call by a delay. |
isEmail |
Validate a string with a basic email regex. |
formatCurrency |
Format numbers into a localized currency string. |
clamp |
Constrain a number within an inclusive [min, max] range. |
throttle |
Limit a function to execute at most once per wait period. |
Next: read the detailed guides for Web, Android, Flutter, and the Recipes.