svgo-add-viewbox

SVGO plugin which adds 'viewBox' attribute based on 'width' and 'height' attributes

viewbox

Library for dealing with SVG viewboxes as plain arrays