alii / pathcat

Simply path/URL building in JavaScript
https://npm.im/pathcat
The Unlicense
173 stars 1 forks source link

Add Array support to ParamValue #1

Closed AntoineKM closed 2 months ago

AntoineKM commented 2 months ago

Hey @alii, it could be great to be able to do things like that:

pathcat("https://example.com", "/:id", {
    id: "123",
    foo: ["b", "a", "r"],
});
// => 'https://example.com/123?foo=b&foo=a&foo=r'
alii commented 2 months ago

Fixed in #2 (thank you!) Released as 1.3.0 https://www.npmjs.com/package/pathcat/v/1.3.0

alii commented 2 months ago

Also published to jsr.io here - https://jsr.io/@alistair/pathcat@1.3.0