0.0.2 • Published 9 months ago
path-paramer v0.0.2
path-paramer
Helper functions for url path paramators
Usage
import {replace} from 'path-paramer'
const path = "/user/{user_id}/profile/{profile_id}"
const result = replace(path, { user_id: "123", profile_id: "456" }
// result is /user/123/profile/456