# @aulamejor/size-of

> Get the dimensions of any image

Latest version **1.0.0-3** (published 2019-07-19) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @aulamejor/size-of
pnpm add @aulamejor/size-of
yarn add @aulamejor/size-of
bun add @aulamejor/size-of
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-3 |
| Published | 2019-07-19 |
| First published | 2019-07-19 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.10 |
| Dependencies | 0 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | androiderik, juanelorganelo |

## Links

- npm: https://www.npmjs.com/package/@aulamejor/size-of
- npm.io page: https://npm.io/package/@aulamejor/size-of

## Recent versions

- 1.0.0-3 (latest) — 2019-07-19
- 1.0.0-2 — 2019-07-19
- 1.0.0-1 — 2019-07-19

## README

# size-of

A [Node](https://nodejs.org/en/) module to get dimensions of any image file

## Supported formats

- GIF
- JPEG
- PNG
- SVG

## Usage

```
npm install @aulamejor/size-of --save
```

```javascript
var sizeOf = require("@aulamejor/size-of");
try {
  const dimensions = await sizeOf("images/funny-cats.png");
  console.log(dimensions.width, dimensions.height);
} catch (err) {
  console.error(err);
}
```

### Using a URL

```javascript
const sizeOf = require("@aulamejor/size-of");
const url = "http://my-amazing-website.com/image.jpeg";
const dimensions = await sizeOf(url);
console.log(dimensions.width, dimensions.height);
```

---
_Source: https://npm.io/package/@aulamejor/size-of · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
