files

An exposer of files

License

License

Categories

Categories

JavaScript Languages
GroupId

GroupId

tz.co.asoft
ArtifactId

ArtifactId

files-js
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

klib
Description

Description

files
An exposer of files
Project URL

Project URL

https://github.com/aSoft-Ltd/files
Source Code Management

Source Code Management

https://github.com/aSoft-Ltd/files

Download files-js

Dependencies

compile (4)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-js jar 1.4.20
org.jetbrains.kotlinx : kotlinx-serialization-core-js jar 1.0.1
org.jetbrains.kotlinx : kotlinx-coroutines-core-js jar 1.4.1
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.20

Project Modules

There are no modules declared in this project.

Files

badge badge badge badge badge

A multiplatform exposer of file

Introduction

This library will give you basic access to File in common code

Samples

suspend fun checkFileThenReadBytes(file: File){
    if(file.extension()=="jpg") { println("File is jpg")}
    val content = file.readBytes() //suspends here
}

Setup

dependencies {
    implementation("tz.co.asoft:files:0.0.1")
}
tz.co.asoft

asoft

Versions

Version
0.0.1