🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

urit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urit

RFC 6570 uri templates

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

uri-template

FAQs

Package last updated on 12 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts