From 996d99cbac515ef85e0f5588dd47e8f44cd7291d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 30 Jan 2021 11:41:50 +0200 Subject: [PATCH] docs(readme) require -> import --- HELP.md | 3 ++- README.md | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HELP.md b/HELP.md index ec922770..9fa838c5 100644 --- a/HELP.md +++ b/HELP.md @@ -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 = '/'; diff --git a/README.md b/README.md index 44b8ab6a..2cedda1f 100644 --- a/README.md +++ b/README.md @@ -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 = '/';