tomayac commited on
Commit
d313b81
·
verified ·
1 Parent(s): 9fafc41

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
index.js CHANGED
@@ -3,7 +3,9 @@ import express from 'express';
3
  const app = express();
4
  const port = 7860;
5
 
6
- console.log(require('express/package.json').version)
 
 
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`);