summaryrefslogtreecommitdiff
path: root/src/helper/get-binary-contents.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/get-binary-contents.ts')
-rw-r--r--src/helper/get-binary-contents.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/helper/get-binary-contents.ts b/src/helper/get-binary-contents.ts
new file mode 100644
index 0000000..df41228
--- /dev/null
+++ b/src/helper/get-binary-contents.ts
@@ -0,0 +1,13 @@
+
+
+
+/*** EXPORT ------------------------------------------- ***/
+
+export default async(filePath: string) => {
+ const fileExists = await Deno.readFile(filePath);
+
+ if (!fileExists)
+ return "";
+
+ return fileExists;
+}