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 = '/';