1.0.0 • Published 7 years ago

is-image-filename v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

is-image-filename

A webpack compatible version of is-image

Coverage Status

Check if a file name is an image

It just checks the extension of the filename you give it

Install

$ npm install is-image-filename

Usage

const isImage = require('is-image-filename');

isImage('src/unicorn.png');
//=> true

isImage('src/unicorn.txt');
//=> false

Related

License

MIT