@the-/url
URL utility for the-framework
Installation
$ npm install @the-/url --save
Usage
'use strict'
const { formatUrl } = require('@the-/url')
async function tryExample() {
const url = formatUrl('/foo/:id', { id: 2 })
console.log(url) // "/foo/2"
}
tryExample().catch((err) => console.error(err))
API Guide
- module:@the-/url
See API Guide for more detail
License
This software is released under the MIT License.