2.0.1 • Published 5 years ago

swagger-editor-serve v2.0.1

Weekly downloads
123
License
MIT
Repository
github
Last release
5 years ago

swagger-editor-serve

Serve Swagger Editor

Installing

$ npm i swagger-editor-serve -S

Using

Default Configuration

// starts the server and returns a promise that yields editor url object
const serve = require('./index');
serve()
  .then(c => console.log(c));

Configuration Override

const serve = require('./index');
serve({
  editorPath: '../node_modules/swagger-editor-dist',
  serverUrl: {
    port: 9000
  }
}).then(c => console.log(c));

Node Compatibility

Requires Node >= 8

License

MIT

2.0.1

5 years ago

2.0.0

6 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago