urit
v1.0.2
Published
RFC 6570 uri templates
Downloads
13
Maintainers
Readme
urit
RFC 6570 uri templates.
Installation
$ npm install urit
Usage
const urit = require('urit')
const expand = urit('{?query*}')
expand({query: {first: 1, second: 2}})
// => '?first=1&second=2'
Why?
I prefer using closures over methods since I never seem to remember the right method names. This takes all the goodness from uritemplate and wraps it in a thunk.