https://github.com/akiomik/cats-nio-file
A thin scala wrapper for Java NIO.2, built on cats-effect 🐱
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.2%) to scientific vocabulary
Keywords
Repository
A thin scala wrapper for Java NIO.2, built on cats-effect 🐱
Basic Info
Statistics
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 1
- Releases: 14
Topics
Metadata Files
README.md
cats-nio-file
A thin scala wrapper for Java NIO.2, built on cats-effect 🐱
Getting started
cats-nio-file is currently available for Scala 2.12, 2.13 and 3.2.
Add the following lines to your build.sbt.
scala
libraryDependencies += "io.github.akiomik" %% "cats-nio-file" % "1.10.0"
NOTE: The groupid has been changed from com.github.akiomik to io.github.akiomik because the maven repository has been changed from bintray to sonatype.
All releases
cats-nio-file supports some different versions of cats-effect.
| cats-nio-file version | cats-effect version | scala version | | --------------------- | ------------------- | ------------------- | | 1.0.1 | 2.0.x | 2.12.x/2.13.x | | 1.1.0 | 2.1.x | 2.12.x/2.13.x | | 1.2.0 | 2.2.x | 2.12.x/2.13.x | | 1.3.0 | 2.3.x | 2.12.x/2.13.x | | 1.4.0 | 3.0.x | 2.12.x/2.13.x | | 1.5.0 | 3.1.x | 2.12.x/2.13.x | | 1.6.1 | 3.2.x | 2.12.x/2.13.x/3.0.x | | 1.7.0 | 3.3.x | 2.12.x/2.13.x/3.1.x | | 1.8.1 | 3.3.x | 2.12.x/2.13.x/3.2.x | | 1.9.0 | 3.4.x | 2.12.x/2.13.x/3.2.x | | 1.10.0 | 3.5.x | 2.12.x/2.13.x/3.2.x |
Usage
```scala import java.util.stream.{Stream => JStream} import java.nio.file.{Path, Paths} import java.nio.file.attribute.PosixFilePermission import scala.collection.mutable
import cats.effect.{IO, Resource} import cats.nio.file.Files
// File I/O operations are wrapped with F[_] (e.g. IO)
val exists: IO[Boolean] = Files[IO].exists(Paths.get("build.sbt"))
// Java collections are converted to Scala collections through scala.jdk.CollectionConverters
val perms: IO[mutable.Set[PosixFilePermission]] = Files[IO].getPosixFilePermissions(Paths.get("build.sbt"))
// IO[JStream[A]] values are able to convert to Resource
import cats.nio.file.implicits._
val list: Resource[IO, JStream[Path]] = Files[IO].list(Paths.get(".")).resource
```
Owner
- Name: Akiomi KAMAKURA
- Login: akiomik
- Kind: user
- Location: Japan
- Website: https://0m1.io
- Repositories: 226
- Profile: https://github.com/akiomik
Bird lover.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 2
- Total pull requests: 245
- Average time to close issues: N/A
- Average time to close pull requests: 22 days
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.41
- Merged pull requests: 141
- Bot issues: 0
- Bot pull requests: 225
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- TimoMeijer (1)
Pull Request Authors
- github-actions[bot] (98)
- akiomik (14)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
- Total downloads: unknown
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 35
repo1.maven.org: io.github.akiomik:cats-nio-file_2.12
A thin scala wrapper for Java NIO.2, built on cats-effect
- Homepage: https://github.com/akiomik/cats-nio-file
- Documentation: https://appdoc.app/artifact/io.github.akiomik/cats-nio-file_2.12/
- License: Apache-2.0
-
Latest release: 1.10.0
published almost 3 years ago
Rankings
repo1.maven.org: io.github.akiomik:cats-nio-file_3
A thin scala wrapper for Java NIO.2, built on cats-effect
- Homepage: https://github.com/akiomik/cats-nio-file
- Documentation: https://appdoc.app/artifact/io.github.akiomik/cats-nio-file_3/
- License: Apache-2.0
-
Latest release: 1.10.0
published almost 3 years ago
Rankings
repo1.maven.org: io.github.akiomik:cats-nio-file_2.13
A thin scala wrapper for Java NIO.2, built on cats-effect
- Homepage: https://github.com/akiomik/cats-nio-file
- Documentation: https://appdoc.app/artifact/io.github.akiomik/cats-nio-file_2.13/
- License: Apache-2.0
-
Latest release: 1.10.0
published almost 3 years ago
Rankings
Dependencies
- actions/checkout v2 composite
- actions/setup-java v2 composite
- coursier/cache-action v6 composite