edward

module
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2015 License: MIT

README

Edward License NPM version Dependency Status

Web editor used in Cloud Commander.

Edward

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

Directories

Path Synopsis
modules
ace-builds/demo/kitchen-sink/docs command
Concurrent computation of pi.
Concurrent computation of pi.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL