rsnext/test/integration/api-support/pages/api/child-process.js
2020-05-18 15:24:37 -04:00

6 lines
148 B
JavaScript

import { execSync } from 'child_process'
export default (req, res) => {
const output = execSync('echo hi').toString().trim()
res.end(output)
}