npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

koa-map-local

0.1.0 • Public • Published

koa-map-local

Charles map local for Koa.js

Build Status Coverage Status npm version npm downloads npm license

Install

$ npm i koa-map-local --save

API

const mapLocal = require('koa-map-local')
const app = new (require('koa'))
 
const publicDir = __dirname + '/public'
app.use(publicDir)
 
app.listen(1337)

mapLocal(publicDir)

GET http://proxytest.com/test/resource.json
will send `${ publicDir }/proxytest.com/test/resource.json` file

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

install

npm i koa-map-local

Downloadsweekly downloads

0

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability