2.0.7 • Published 3 years ago

@scuba-squad/virtual-ext v2.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

2.0.6

3 years ago

2.0.5

4 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago