@js-from-routes/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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.

/@js-from-routes/core/

    Package Sidebar

    Install

    npm i @js-from-routes/core

    Weekly Downloads

    2,211

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    19.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • elmassimo