📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

svg-dimensions

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-dimensions

Returns the height and width attributes of an svg image.

1.0.2
latest
Source
npm
Version published
Weekly downloads
126
53.66%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

svg

FAQs

Package last updated on 23 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts