1.4.7 • Published 5 years ago
the-url v1.4.7
the-url
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.