Download next.js/test/integration/build-trace-extra-entries/app/lib/get-data.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/build-trace-extra-entries/app/lib/get-data.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/build-trace-extra-entries/app/lib/get-data.js
-
curl -L -o get-data.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/build-trace-extra-entries/app/lib/get-data.js
176 Bytes
| import fs from 'fs' | |
| import path from 'path' | |
| export function getData() { | |
| return JSON.parse( | |
| fs.readFileSync(path.join(process.cwd(), 'content/hello.json'), 'utf8') | |
| ) | |
| } | |