npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

urit

1.0.2

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:177
$ npm install urit
DailyWeeklyMonthlyYearly

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:

  • RFC 6570
  • uritemplate-js
  • uri-template
  • url-template

License

MIT