# is-image-fast

> Check if a url is an image using HTTP HEAD

Latest version **1.0.0** (published 2020-06-12) · NoHarm license · 0 weekly downloads

## Install

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

## 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 |
| Published | 2020-06-12 |
| First published | 2020-06-12 |
| Weekly downloads | 0 |
| License | NoHarm |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chris Jensen |
| Maintainers | raiselyengineering |
| Keywords | check, url, is, image, img, photo, pic, picture, jpg, jpeg, png, gif |

## Links

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

## Dependencies (3)

- [is-url](https://npm.io/package/is-url.md) ^1.2.1
- [request](https://npm.io/package/request.md) ^2.88.2
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.8

## 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.0.0 (latest) — 2020-06-12

## README

# is-image-fast

Check if a url is an image
Forked from [is-image-url](https://github.com/wzbg/is-image-url) to make requests async and
use HTTP HEAD so body of image is not fetched

## Install

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


## Usage

```js
const isImageFast = require('is-image-fast');

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

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

## License

Licensed under [No Harm License](https://github.com/raisely/noharm)

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