@the-/url

15.4.12 • Public • Published

@the-/url

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/url

Weekly Downloads

1

Version

15.4.12

License

MIT

Unpacked Size

37.4 kB

Total Files

13

Last publish

Collaborators

  • okunishinishi