neuron-reverse-router
Reverse router to map a local filename to a url path according to router configurations of neuron-dev-server.
Install
$ npm install neuron-reverse-router --save
Usage
routers:
location: '/mod' root: '/home/my/.static_modules/' location: '/old' root: '/data/public' location: '/new' root: '/data' with_location: true
var rr = ; rr; // '/old/a.js'
License
MIT