Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.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

latest
Source
npmnpm
Version
2.0.7
Version published
Maintainers
1
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 02 Sep 2022

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