is-img
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

is-img


Installation

Install with npm / yarn / pnpm:

npm install is-img
yarn add is-img
pnpm add is-img

Example

const isImg = require('is-img');

isImg('./path/to/image/file.png').then(boolean => console.log(boolean));
isImg('image url').then(boolean => console.log(boolean));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    8

Package Sidebar

Install

npm i is-img

Weekly Downloads

8

Version

0.1.0

License

ISC

Unpacked Size

5.8 kB

Total Files

9

Last publish

Collaborators

  • xhyrom