habits-cli
Version:
The habits application seeks to help individuals build up healthy habits.
16 lines (15 loc) • 557 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.values = void 0;
var chalk_1 = __importDefault(require("chalk"));
var formatPointsChange = function (pointsChange) {
return pointsChange < 0
? chalk_1.default.red("(" + Math.abs(pointsChange) + ")")
: chalk_1.default.green("+" + pointsChange);
};
exports.values = {
formatPointsChange: formatPointsChange,
};