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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    243
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    243

Package Sidebar

Install

npm i is-image-filename

Weekly Downloads

243

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kellyrmilligan