Files
nanocode/webtools/scripts/getLatestChangelog.mjs
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

7 lines
208 B
JavaScript

import { readFile } from 'fs/promises';
const changelogContent = await readFile('./CHANGELOG.md', 'utf-8');
const [, lastChangelog] = changelogContent.split(/^## .*$/gm);
console.log(lastChangelog.trim());