Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

easy-server-dev

gileze331ISC2.4.0

Easiest possible express wrapper to get something out the door yesterday

readme

EasyServer-Dev

Really lightweight wrapper around express to help you make a neat app from day one.

Important

This is dev version of easy-server that hot-reloads controllers when they change. It's not meant to be used in production environment.

Options are identical to easy-server, so you can check the documentation here.

To use, just swap easy-server with easy-server-dev when needed.

var EasyServer = require('easy-server');
if (process.env.HOT) {
  EasyServer = require('easy-server-dev');
}

var app = new EasyServer({
  // ...
});

changelog

2.1.0

  • Added extensions option

2.0.8

  • Use typed middleware-manager

2.0.7

  • Export Application interface (for Typescript.)

2.0.6

  • Removed the dependency on require-all module. Fixed an issue with files and directories with similar names.

2.0.5

  • Fixing another bug in loading controllers

2.0.4

  • Removed cluster support in dev version

2.0.2

  • Fixed a middleware loading issue (incorrect regex for require-all)

2.0.0

  • Rewritten in TypeScript!
  • Breaking changes:
    • easyServer is now a function, not a class constructor i.e. to create a new server, you should use var server = easyServer(options); instead of var server = new EasyServer(options);.
    • easyServer is now a subclass of express.Server. i.e. You should replace all references to server.server.* with just server.*
  • You can now get a reference to the undelying http server when you call .start the same way you do when you call express.listen.

1.4.0

  • publishing dev version

1.3.0

  • CORS middleware
  • tab title option

1.1.0

  • recursive search in controllers and middleware directories