Download next.js/test/integration/api-support/pages/api/child-process.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 148 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/child-process.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/api-support/pages/api/child-process.js
-
curl -L -o child-process.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/child-process.js
148 Bytes
| import { execSync } from 'child_process' | |
| export default (req, res) => { | |
| const output = execSync('echo hi').toString().trim() | |
| res.end(output) | |
| } | |