From 147a792c4c1d34ff87053279fb9ab26a517c0ec6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 4 Mar 2020 15:47:15 +0000 Subject: [PATCH] fix(core): update --- ts/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/index.ts b/ts/index.ts index 3b62b92..f8c8eae 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -31,3 +31,7 @@ export const isBinary = (pathArg: string) => { } return isBinary; } + +export const getEncoding = (pathArg: string) => { + return isBinary(pathArg) ? 'binary' : 'utf8'; +}