{
const transform = uris.newPathMapping([
{ source: "./sources/", target: "/" },
{ source: "file:///tmp/data/", target: "/toto/" },
{ source: "http://www.foo.bar/tech/", target: "/docs/" },
{ source: "http://www.foo.bar/assets/img/", target: "/images/" }
]);
const result = [
"./sources/index.md",
"http://www.foo.bar/tech/readme.md",
"http://www.foo.bar/assets/img/MyImage.jpg",
"file:///tmp/data/products/prices.md"
].map((uri) => [uri, transform(uri)]);
return Object.fromEntries(result);
}