hapi-recall

0.0.1 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i hapi-recall

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • miloconway