mr-excel
Version:
A versatile JavaScript library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.
15 lines (13 loc) • 451 B
JavaScript
import { exec, execSync } from "child_process";
let result = execSync("git log -p -1 -- CHANGELOG.md");
let stdout = result.toString();
let x = "*************************";
let pos = stdout.replace(/@@[\n\s\S]*?@@/, x);
let res = pos
.substring(pos.indexOf(x) + x.length + 1)
.replace(/@@[\n\s\S]*?@@/, "");
console.log(
res.match(/\+.*/g).reduce((result, current) => {
return result + "\n" + current.substring(1);
}, "").substring(1)
);