svg-dimensions
v1.0.2
Published
Returns the height and width attributes of an svg image.
Downloads
1,085
Maintainers
Readme
node-svg-dimmensions
Returns the height and width attributes of an svg image.
Usage
var svgDim = require('svg-dimensions');
var path = '/local/file/example.svg';
svgDim.get(path, function(err, dimensions) {
if (err) console.log(err);
var height = dimensions.height;
var width = dimensions.width;
});