Error fast/early for 406 Not Acceptable requests
Via npm
npm install @scuba-squad/acceptable
const express = require('express');
const acceptable = require('@scuba-squad/acceptable');
const app = express();
app.use(acceptable('json', 'txt', 'html', 'xml', 'js', 'jpg'));
npm install
npm test