rsnext/test/integration/api-support/pages/api/child-process.js

9 lines
158 B
JavaScript
Raw Normal View History

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