is-image-filename

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i is-image-filename

Weekly Downloads

307

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kellyrmilligan