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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i koa-map-local

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • magicdawn