2.0.7 • Published 2 years ago

@scuba-squad/virtual-ext v2.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Virtual Ext

Build Status Coverage Status

Purpose

Transform a file extension in a url path into an Accept header

### ORIGINAL REQUEST ###
HTTP/2.0 GET /v1/accounts.json

Accept: */*

### TRANSFORMED REQUEST ###
HTTP/2.0 GET /v1/accounts

Accept: application/json

Installation

Via npm

npm install @scuba-squad/virtual-ext

Usage

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

const app = express();

app.use(virtual);

Test

tests

npm install
npm test
2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago