is-image-filename
detect if a filename is an image
Last updated 3 years ago by kellyrmilligan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-image-filename 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |