recursive-add-prefix
v0.1.12
Published
Recursively add prefix
Downloads
1
Readme
recursive-add-prefix
Usage
yarn add recursive-add-prefix
import { addPrefix } from "recursive-add-prefix";
const pathMap = {
a: "/a/b/c",
b: {
c: "/abc",
},
};
addPrefix("https://example.com", pathMap);
// {
// a: "https://example.com/a/b/c",
// b: {
// c: "https://example.com/abc",
// },
// }
License
MIT