https://github.com/yhdgms1/is-image
Checks if the string is a picture by extension
https://github.com/yhdgms1/is-image
deno image picture
Last synced: about 2 months ago
JSON representation
Checks if the string is a picture by extension
- Host: GitHub
- URL: https://github.com/yhdgms1/is-image
- Owner: yhdgms1
- Created: 2021-02-06T16:44:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T12:04:03.000Z (about 5 years ago)
- Last Synced: 2025-03-17T21:44:07.948Z (over 1 year ago)
- Topics: deno, image, picture
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# is-image
This module checks only the ending of the file
## Getting started
```ts
import { isImage, isWebImage } from "https://deno.land/x/is_image/mod.ts";
isImage("image.png"); //true
isWebImage("image.tga"); //false
```