add getFileString()

This commit is contained in:
2017-07-30 22:00:20 +02:00
parent fa1611ab91
commit 8789ee920b
4 changed files with 18 additions and 1 deletions

View File

@ -80,3 +80,9 @@ export let injectFileArray = async (fileArray: fileObject[]) => {
}
return fileArray
}
export let getFileString = (filePathArg: string) => {
if (cache[filePathArg]) {
return cache[filePathArg].contents.toString()
}
}