🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@scuba-squad/acceptable

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scuba-squad/acceptable

Content negotiation middleware for Express and Restify

Source
npmnpm
Version
2.0.5
Version published
Weekly downloads
85
4150%
Maintainers
1
Weekly downloads
 
Created
Source

Acceptable

Build Status Coverage Status

Purpose

Error fast/early for 406 Not Acceptable requests

Installation

Via npm

npm install @scuba-squad/acceptable

Usage

const express = require('express');
const acceptable = require('@scuba-squad/acceptable');

const app = express();

app.use(acceptable('json', 'txt', 'html', 'xml', 'js', 'jpg'));

Test

tests

npm install
npm test

Keywords

accept

FAQs

Package last updated on 12 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts