From 9b1a6f045cee84439d04cbb6a02011fde9be16aa Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 7 Nov 2023 23:58:39 -0500 Subject: [PATCH] Delete result/src/jsTest directory --- .../kotlin/com/github/kittinunf/result/Resource.kt | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 result/src/jsTest/kotlin/com/github/kittinunf/result/Resource.kt diff --git a/result/src/jsTest/kotlin/com/github/kittinunf/result/Resource.kt b/result/src/jsTest/kotlin/com/github/kittinunf/result/Resource.kt deleted file mode 100644 index cb07775..0000000 --- a/result/src/jsTest/kotlin/com/github/kittinunf/result/Resource.kt +++ /dev/null @@ -1,14 +0,0 @@ -package com.github.kittinunf.result - -external fun require(name: String): dynamic -external val __dirname: dynamic - -private val fs = require("fs") - -actual class Resource actual constructor(actual val name: String) { - private val path = "$resource/$name" - - actual fun exists(): Boolean = fs.existsSync(path) as Boolean - - actual fun read(): String = fs.readFileSync(path, "utf8") as String -}