Skip to content

magicdawn/koa-map-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-map-local

Greenkeeper badge

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

About

Charles map local for Koa.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published