This package has been deprecated

Author message:

move to @the-/url ( https://github.com/the-labo/the/tree/master/packages/url#readme )

the-url

1.4.7 • Public • Published

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-url

Weekly Downloads

7

Version

1.4.7

License

MIT

Unpacked Size

43.5 kB

Total Files

31

Last publish

Collaborators

  • fuji_haruka
  • okunishinishi