don't use prototype to export module members

This commit is contained in:
David Keijser 2015-02-09 11:24:13 +01:00
parent cc4e4c429f
commit 95783b24e0

View file

@ -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;