# is-image-url

> Check if a url is an image

Latest version **1.1.8** (published 2016-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-image-url
pnpm add is-image-url
yarn add is-image-url
bun add is-image-url
```

## 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.1.8 |
| Published | 2016-01-21 |
| First published | 2015-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | wzbg |
| Maintainers | wzbg |
| Keywords | check, url, is, image, img, photo, pic, picture, jpg, jpeg, png, gif |

## Links

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

## Dependencies (3)

- [is-url](https://npm.io/package/is-url.md) ^1.2.1
- [is-image](https://npm.io/package/is-image.md) ^1.0.1
- [sync-request](https://npm.io/package/sync-request.md) ^2.1.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.8 (latest) — 2016-01-21
- 1.1.7 — 2016-01-21
- 1.1.6 — 2015-12-16
- 1.1.5 — 2015-12-16
- 1.1.4 — 2015-11-06
- 1.1.3 — 2015-11-06
- 1.1.2 — 2015-10-27
- 1.1.1 — 2015-09-28
- 1.1.0 — 2015-09-28
- 1.0.9 — 2015-09-28
- 1.0.8 — 2015-09-28
- 1.0.7 — 2015-09-28
- 1.0.6 — 2015-09-19
- 1.0.5 — 2015-09-11
- 1.0.4 — 2015-09-11
- … 4 more at https://npm.io/package/is-image-url/versions

## README

# is-image-url

> Check if a url is an image


## Install

```
$ npm install --save is-image-url
```


## Usage

```js
const isImageUrl = require('is-image-url');

isImageUrl('https://timedotcom.files.wordpress.com/2015/08/gettyimages-482708894.jpg?quality=65&strip=color&w=1100');
//=> true

isImageUrl('http://time.com/3981644/hong-kong-breast-assault-protest/');
//=> false
```


## Related

- [`is-url`](https://www.npmjs.com/package/is-url) - Check whether a string is a URL
- [`is-image`](https://www.npmjs.com/package/is-image) - Check if a filepath is an image
- [`sync-request`](https://www.npmjs.com/package/sync-request) - Make synchronous web requests
- [`url`](https://www.npmjs.com/package/url) - The core url packaged standalone for use with Browserify

## License

The MIT License (MIT)

Copyright (c) 2015 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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