npm.io
0.0.1 • Published 11 years ago

hapi-recall

Licence
MIT
Version
0.0.1
Deps
1
Vulns
1
Weekly
0
Stars
2

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'

Keywords