From 95783b24e07d6581921e1b4f22532c80d7fd7fe5 Mon Sep 17 00:00:00 2001 From: David Keijser Date: Mon, 9 Feb 2015 11:24:13 +0100 Subject: [PATCH] don't use prototype to export module members --- index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8cacd8c..511e2d7 100644 --- a/index.js +++ b/index.js @@ -97,9 +97,8 @@ function init() { defineProps(Chalk.prototype, init()); -Chalk.prototype.styles = ansiStyles; -Chalk.prototype.hasColor = hasAnsi; -Chalk.prototype.stripColor = stripAnsi; -Chalk.prototype.supportsColor = supportsColor; - module.exports = new Chalk(); +module.exports.styles = ansiStyles; +module.exports.hasColor = hasAnsi; +module.exports.stripColor = stripAnsi; +module.exports.supportsColor = supportsColor;