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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    5
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i urit

Weekly Downloads

5

Version

1.0.2

License

MIT

Last publish

Collaborators

  • yoshuawuyts