Skip to content

fixiecoder/node-svg-dimensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
});

About

Returns the height and width attributes of an svg image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published