Download next.js/bench/module-cost/pages/api/esm.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/bench/module-cost/pages/api/esm.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/bench/module-cost/pages/api/esm.js
-
curl -L -o esm.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/bench/module-cost/pages/api/esm.js
223 Bytes
| import { measure } from '../../lib/measure' | |
| export default async function handler(req, res) { | |
| const result = await measure( | |
| 'pages api esm', | |
| () => import('../../lib/esm.js') | |
| ) | |
| res.status(200).json(result) | |
| } | |