diff --git a/index.js b/index.js index fb4805dd..2a25793e 100644 --- a/index.js +++ b/index.js @@ -1 +1,4 @@ -module.exports = require(`./lib${process.env.FLUENTFFMPEG_COV ? '-cov' : ''}/fluent-ffmpeg`); +const isCov = + process.env.FLUENTFFMPEG_COV === "1" || + process.env.FLUENTFFMPEG_COV === "true"; +module.exports = require(`./lib${isCov ? "-cov" : ""}/fluent-ffmpeg`);