import util from 'util' import child_process from 'child_process' const exec = util.promisify(child_process.exec) export default async () => { const { stdout, stderr } = await exec('pijul log --output-format json') return JSON.parse(stdout) }