Serve Swagger Editor
$ npm i swagger-editor-serve -S
// starts the server and returns a promise that yields editor url object
const serve = require('./index');
serve()
.then(c => console.log(c));
const serve = require('./index');
serve({
editorPath: '../node_modules/swagger-editor-dist',
serverUrl: {
port: 9000
}
}).then(c => console.log(c));
Requires Node >= 8