Spaces:
Running
Running
File size: 439 Bytes
8e89de5 8dea2b8 8e89de5 8dea2b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import express from "express";
const app = express();
const port = 7860;
app.get('/', async (req, res) => {
res.send(
`Running Node.js ${
(
await import('express/package.json', {
with: { type: 'json' },
})
).default.version
} with Express.js ${process.version.split('.')[0].replace('v', '')}`,
);
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
|