Novice, Practiced, Mastered

    @scuba-squad/virtual-ext

    2.0.5 • 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

    3

    Version

    2.0.5

    License

    MIT

    Unpacked Size

    9.58 kB

    Total Files

    13

    Last publish

    Collaborators

    • scub45t3v3