Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

urit

1.0.2 • Public • Published

urit

NPM version build status Test coverage Downloads js-standard-style

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.

See Also:

License

MIT

install

npm i urit

Downloadsweekly downloads

0

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability