mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
docs(readme) require -> import
This commit is contained in:
parent
a39ea0d61c
commit
996d99cbac
2 changed files with 5 additions and 2 deletions
3
HELP.md
3
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 = '/';
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = '/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue