# image-check

> Check if image exists and retrieve its size (based on Promise)

Latest version **0.1.5** (published 2016-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-check
pnpm add image-check
yarn add image-check
bun add image-check
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2016-04-04 |
| First published | 2016-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dongwon Lim |
| Maintainers | idw111 |
| Keywords | image, check, exists, size, promise |

## Links

- npm: https://www.npmjs.com/package/image-check
- Repository: https://github.com/idw111/image-check
- Homepage: https://github.com/idw111/image-check#readme
- Issues: https://github.com/idw111/image-check/issues
- npm.io page: https://npm.io/package/image-check

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2016-04-04
- 0.1.4 — 2016-04-04
- 0.1.3 — 2016-04-04
- 0.1.2 — 2016-04-04
- 0.1.1 — 2016-04-03
- 0.1.0 — 2016-04-03

## README

# image-check [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url]
> Check if image exists and retrieve its size (based on Promise)

## Installation

```sh
$ npm install --save image-check
```

## Usage

```js
var checkImage = require('image-check');
checkImage('some image url to test').then((data) => {
    // access image attributes
    const width = data.width;
    const height = data.height;
    const url = data.url;
}).catch((err) => {
    // handle error
});
```
## License

MIT © [Dongwon Lim]()


[npm-image]: https://badge.fury.io/js/image-check.svg
[npm-url]: https://npmjs.org/package/image-check
[daviddm-image]: https://david-dm.org/idw111/image-check.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/idw111/image-check

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