@js-from-routes/core
URL interpolation and JSON transform utilities
💿
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.