npm.io
1.4.7 • Published 7 years ago

the-url

Licence
MIT
Version
1.4.7
Deps
2
Size
42 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

the-url

Build Status npm Version JS Standard

URL utility for the-framework

Installation

$ npm install the-url --save

Usage

'use strict'

const { formatUrl } = require('the-url')

async function tryExample () {
  let url = formatUrl('/foo/:id', { id: 2 })
  console.log(url) // "/foo/2"
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Keywords