Edward

Web editor used in Cloud Commander.

Install
npm i edward -g
Command line parameters
Usage: edward [filename]
| Parameter |
Operation |
-h, --help |
display help and exit |
-v, --version |
output version information and exit |
API
Edward could be used as middleware for express.
For this purpuse API could be used.
Server
edward(options)
Middleware of edward. Options could be omitted.
var express = require('express'),
app = express();
app.use(edward({
minify : true, /* default */
online : false, /* default */
diff : true, /* default */
zip : true /* default */
}));
app.listen(31337);
edward.listen(socket)
Could be used with socket.io to handle editor events with.
var io = require('socket.io'),
socket = io.listen(server);
edward.listen(socket);
Client
Edward uses ace on client side, so API is similar.
License
MIT