1.0.1 • Published 1 year ago

img-helper v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

img-helper

Image helper functions.

Installation:

npm i img-helper

Usage:

import { imgHelper } from "img-helper";

if (imgHelper.isValidImage("some-image-url")) {
    console.log("A valid image exists at that URL.");
}
else {
    console.log("No valid image exists at that URL.");
}

if (imgHelper.isSameImage("some-first-image-url", "some-second-image-url")) {
    console.log("Both images are identical.");
}
else {
    console.log("The images are not identical.");
}
1.0.1

1 year ago

1.0.0

1 year ago