0.0.1 • Published 9 years ago

hapi-recall v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

hapi-recall

hapi's router module, call, parses a path and extract the params from a matching path. This module does the inverse: given a hapi path and a query object representing the path params, return a formatted path

To use

var hapiRecall = require('hapi-recall');

hapiRecall('/{foo}', {foo:'bar'}); // => '/bar'
hapiRecall('/{foo}/literal/{buzz}', {foo:'bar',buzz:'bee'}); // => '/bar/literal/bee'