Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -3,7 +3,9 @@ import express from 'express';
|
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
-
console.log(
|
|
|
|
|
|
|
| 7 |
|
| 8 |
app.get('/', (req, res) => {
|
| 9 |
res.send(`Running Node.js ${process.version} with Express.js`);
|
|
|
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
+
console.log(await import('express/package.json', {
|
| 7 |
+
with: { type: 'json' }
|
| 8 |
+
}).version)
|
| 9 |
|
| 10 |
app.get('/', (req, res) => {
|
| 11 |
res.send(`Running Node.js ${process.version} with Express.js`);
|