Open pfraces opened 10 years ago
http.createServer
{ name: 'foo', port: 3000, // powered with a port finder root: 'path/to/fixtures', // modifies cwd context: '/api', // connect's `app.use` 1st arg server: serverFn }
where serverFn could be:
serverFn
require('freddie.fixtures')
require('myExpressServer')
require('myNodeServer')
require('stubby')
http.createServer
where
serverFn
could be:require('freddie.fixtures')
require('myExpressServer')
require('myNodeServer')
require('stubby')