https://github.com/robstoll/niok
Kotlin idiomatic API for java.nio.file
https://github.com/robstoll/niok
fileio kotlin nio2
Last synced: about 1 year ago
JSON representation
Kotlin idiomatic API for java.nio.file
- Host: GitHub
- URL: https://github.com/robstoll/niok
- Owner: robstoll
- License: apache-2.0
- Created: 2018-09-18T06:02:09.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T14:33:14.000Z (over 1 year ago)
- Last Synced: 2025-04-05T07:27:14.722Z (about 1 year ago)
- Topics: fileio, kotlin, nio2
- Language: Kotlin
- Size: 1.63 MB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://search.maven.org/artifact/ch.tutteli.niok/niok/1.5.0/jar)
[](http://opensource.org/licenses/Apache2.0)
[](https://github.com/robstoll/niok/actions?query=workflow%3AUbuntu+branch%3Amain)
[](https://github.com/robstoll/niok/actions?query=workflow%3AWindows+branch%3Amain)
[](https://sonarcloud.io/dashboard?id=robstoll_niok)
# Niok - java.nio.file for Kotlin
Niok provides a Kotlin idiomatic API for java.nio.file (the package for non-blocking I/O file operations).
We believe that using `Files` decreases readability => extension functions to the rescue :smirk:
Next to providing delegations to `Files` it also delegates to Kotlin's built-in extension functions for `File` and
provides additional functions.
# Installation
Niok is published to maven central. Following an example how to use it
```
repositories { mavenCentral() }
dependencies {
implementation("ch.tutteli.niok:niok:1.5.0")
}
```
# Documentation
Visit [https://robstoll.github.io/niok/kdoc](https://robstoll.github.io/niok/kdoc/).
# Contribute
You found a bug, a delegation to `Files` is missing or there is something else you would like to improve?
Please [open an issue](https://github.com/robstoll/niok/issues/new), contributions are more than welcome :+1:
# License
Niok is licensed under [Apache 2.0](http://opensource.org/licenses/Apache2.0).