From 7819f0e1c53452290333ef4105388023b05a786d Mon Sep 17 00:00:00 2001 From: Austin Andrews Date: Sat, 15 Feb 2020 16:47:34 -0600 Subject: [PATCH] Fix bug with `read` method. --- package.json | 2 +- util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6569da8..4131287 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mdi/util", - "version": "0.3.0", + "version": "0.3.2", "description": "Util helpers for support builds.", "main": "util.js", "scripts": { diff --git a/util.js b/util.js index a1bcc16..fe789d8 100644 --- a/util.js +++ b/util.js @@ -45,7 +45,7 @@ exports.write = (file, data) => { }; exports.read = (file) => { - fs.readFileSync(file); + return fs.readFileSync(file, 'utf8'); }; exports.exists = (file) => {