rsnext/test/integration/api-support/pages/api/child-process.js
2020-03-06 13:42:05 -05:00

8 lines
160 B
JavaScript

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