Fitter Sketch Plugin

Free
premium
Fitter Sketch Plugin

Fits layers to parent artboard width, height or both, with the optional ability to add a margin.