@ossjs/release
Version:
Minimalistic, opinionated, and predictable release automation tool.
11 lines • 411 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatDate = void 0;
function formatDate(date) {
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
return `${year}-${month}-${day}`;
}
exports.formatDate = formatDate;
//# sourceMappingURL=formatDate.js.map