UNPKG

create-cttq

Version:

CTTQ大前端脚手架项目

17 lines (11 loc) 396 B
module.exports = function generateChangelog(pkg) { let currentDate = new Date(); let year = currentDate.getFullYear(); let month = (currentDate.getMonth() + 1).toString().padStart(2, "0"); let day = currentDate.getDate().toString().padStart(2, "0"); let changelog = `# ${pkg.name} ## ${pkg.version} (${year}-${month}-${day}) - ${pkg.description} ` return changelog }