docs(readme) require -> import

This commit is contained in:
coderaiser 2021-01-30 11:41:50 +02:00
parent a39ea0d61c
commit 996d99cbac
2 changed files with 5 additions and 2 deletions

View file

@ -666,8 +666,9 @@ And create `index.js`:
import http from 'http';
import cloudcmd from 'cloudcmd';
import io from 'socket.io';
const app = require('express')();
import express from 'express';
const app = express();
const port = 1337;
const prefix = '/';

View file

@ -72,7 +72,9 @@ And create `index.js`:
import http from 'http';
import cloudcmd from 'cloudcmd';
import io from 'socket.io';
const app = require('express')();
import express from 'express';
const app = express();
const port = 1337;
const prefix = '/';