https://github.com/codewell/is-image
Determine if an object is an image
https://github.com/codewell/is-image
Last synced: 6 days ago
JSON representation
Determine if an object is an image
- Host: GitHub
- URL: https://github.com/codewell/is-image
- Owner: codewell
- License: mit
- Created: 2019-11-18T14:58:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:17:33.000Z (over 3 years ago)
- Last Synced: 2025-10-30T23:45:55.803Z (8 months ago)
- Language: JavaScript
- Size: 788 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @codewell/is-image
Determine if an object is an image
## Installation
```
npm install @codewell/is-image
```
## Basic usage
```JavaScript
import isImage from '@codewell/isImage';
const img = new Image();
isImage(img); // => true
isImage({}); // => false
```