mirror of
				https://github.com/CorentinTh/it-tools.git
				synced 2025-10-31 01:57:00 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			208 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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());
 |