@js-from-routes/core
v1.0.2
Published
Utilities for formatting URLs and transforming responses.
Downloads
11,226
Readme
Installation 💿
Normally you wouldn't need to install it manually, instead follow the instructions of js_from_routes.
npm i @js-from-routes/core # yarn add @js-from-routes/core
Usage 🚀
import { formatUrl } from '@js-from-routes/core'
formatUrl('/video_clips/:id/download', { id: 5 }) == '/video_clips/5/download'
License
This library is available as open source under the terms of the MIT License.