Pathstuff to scale to bound

I am trying to see if I can take a path and scale it to a particular dimension. Let’s suppose 100x100.

For example. if you take a look at this notebook, I am generating a data-driven path and utilizing d3-scale to give me what I need. pathStr is the desired output. However, how can I reach to the same output without requiring the d3-scale in between? I was hoping to pass on the pathOg to some Pathstuff API to give me the identical result of pathStr.

If I have a data-driven path, d3 is the savior, but not all the paths are data-driven. What if I start only from the pathOg without knowing how it was generated, how can I still get to pathStr through Pathstuff.