Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@scuba-squad/virtual-ext

2.0.2 • Public • Published

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

Install

npm i @scuba-squad/virtual-ext

DownloadsWeekly Downloads

4

Version

2.0.2

License

MIT

Unpacked Size

9.55 kB

Total Files

13

Last publish

Collaborators

  • avatar