diff --git a/benchmarks/bare.js b/benchmarks/bare.js deleted file mode 100644 index ff385ea5c0..0000000000 --- a/benchmarks/bare.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict' - -var server = require('http').createServer(handle) - -server.listen(3000) - -function handle (req, res) { - res.end(JSON.stringify({ hello: 'world' })) -} diff --git a/benchmarks/express-route-prefix.js b/benchmarks/express-route-prefix.js deleted file mode 100644 index e65c392882..0000000000 --- a/benchmarks/express-route-prefix.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict' - -const express = require('express') -const app = express() - -const router = express.Router() - -router.get('/hello', (req, res) => { - res.send({ hello: 'world' }) -}) - -app.use('/greet', router) - -app.listen(3000, function () { - console.log('Example app listening on port 3000!') -}) diff --git a/benchmarks/express-with-middlewares.js b/benchmarks/express-with-middlewares.js deleted file mode 100644 index a04e072e53..0000000000 --- a/benchmarks/express-with-middlewares.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict' - -var express = require('express') -var app = express() - -app.use(require('cors')()) -app.use(require('dns-prefetch-control')()) -app.use(require('frameguard')()) -app.use(require('hide-powered-by')()) -app.use(require('hsts')()) -app.use(require('ienoopen')()) -app.use(require('x-xss-protection')()) - -app.get('/', function (req, res) { - res.send({ hello: 'world' }) -}) - -app.listen(3000, function () { - console.log('Example app listening on port 3000!') -}) diff --git a/benchmarks/express.js b/benchmarks/express.js deleted file mode 100644 index 001fe30d69..0000000000 --- a/benchmarks/express.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict' - -var express = require('express') -var app = express() - -app.get('/', function (req, res) { - res.send({ hello: 'world' }) -}) - -app.listen(3000, function () { - console.log('Example app listening on port 3000!') -}) diff --git a/benchmarks/hapi.js b/benchmarks/hapi.js deleted file mode 100644 index c7883d6b31..0000000000 --- a/benchmarks/hapi.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict' - -const Hapi = require('hapi') - -// Create a server with a host and port -const server = new Hapi.Server() -server.connection({ - host: 'localhost', - port: 3000 -}) - -// Add the route -server.route({ - method: 'GET', - path: '/', - handler: function (request, reply) { - return reply({ hello: 'world' }) - } -}) - -// Start the server -server.start((err) => { - if (err) { - console.error(err) - process.exit(1) - } -}) diff --git a/benchmarks/koa-router.js b/benchmarks/koa-router.js deleted file mode 100644 index a1ff70dc95..0000000000 --- a/benchmarks/koa-router.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict' - -var Koa = require('koa') -var router = require('koa-router')() -var app = new Koa() - -router.get('/', async (ctx) => { - ctx.body = JSON.stringify({ hello: 'world' }) -}) - -app - .use(router.routes()) - -app.listen(3000) diff --git a/benchmarks/koa.js b/benchmarks/koa.js deleted file mode 100644 index cf77046af6..0000000000 --- a/benchmarks/koa.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict' - -var Koa = require('koa') -var app = new Koa() - -app.use(async (ctx) => { - ctx.body = JSON.stringify({ hello: 'world' }) -}) - -app.listen(3000) diff --git a/benchmarks/restify.js b/benchmarks/restify.js deleted file mode 100644 index a7ecfaf1ed..0000000000 --- a/benchmarks/restify.js +++ /dev/null @@ -1,6 +0,0 @@ -const restify = require('restify') -const server = restify.createServer() -server.get('/', (req, res) => { - res.send({hello: 'world'}) -}) -server.listen(3000) diff --git a/benchmarks/take-five.js b/benchmarks/take-five.js deleted file mode 100644 index 1c05b56721..0000000000 --- a/benchmarks/take-five.js +++ /dev/null @@ -1,4 +0,0 @@ -const five = require('take-five') -const server = five() -server.get('/', (req, res) => res.send({ hello: 'world' })) -server.listen(3000) diff --git a/package.json b/package.json index 8cb924fc14..d407823942 100644 --- a/package.json +++ b/package.json @@ -46,27 +46,21 @@ "cors": "^2.8.4", "coveralls": "^2.13.1", "dns-prefetch-control": "^0.1.0", - "express": "^4.15.3", "fast-json-body": "^1.1.0", "fast-safe-stringify": "^1.2.0", "fastify-plugin": "^0.1.0", "frameguard": "^3.0.0", - "hapi": "^16.4.3", "helmet": "^3.6.1", "hide-powered-by": "^1.0.0", "hsts": "^2.0.0", "ienoopen": "^1.0.0", - "koa": "^2.3.0", - "koa-router": "^7.2.1", "pino": "^4.7.0", "pre-commit": "^1.2.2", "request": "^2.81.0", - "restify": "^5.0.1", "shot": "^3.4.2", "snazzy": "^7.0.0", "split2": "^2.1.1", "standard": "^10.0.2", - "take-five": "^1.3.4", "tap": "^10.7.0", "then-sleep": "^1.0.1", "x-xss-protection": "^1.0.0"