This commit is contained in:
Lloyd Brookes
2015-11-19 10:17:02 +00:00
parent d8e3cd0737
commit 7a27ef0768
2 changed files with 10 additions and 4 deletions

View File

@ -14,7 +14,7 @@ const pathToRegexp = require('path-to-regexp')
module.exports = localWebServer
/**
* Returns a Koa application
* Returns a Koa application you can launch or mix into an existing app.
*
* @param [options] {object} - options
* @param [options.static] {object} - koa-static config
@ -34,6 +34,7 @@ module.exports = localWebServer
* @param [options.verbose] {boolean} - Print detailed output, useful for debugging
*
* @alias module:local-web-server
* @return {external:KoaApplication}
* @example
* const localWebServer = require('local-web-server')
* localWebServer().listen(8000)
@ -240,3 +241,8 @@ process.on('unhandledRejection', (reason, p) => {
* @property from {string} - request route
* @property to {string} - target route
*/
/**
* @external KoaApplication
* @see https://github.com/koajs/koa/blob/master/docs/api/index.md#application
*/