Open/view an image.
You can install it locally to use the API:
npm install open-image
or globally to use the CLI:
npm install -g open-image
const openImage = require('open-image');
openImage('/path/or/url/to/image.png');
openImage(imagePath)
- Opens the image at the given
imagePath
- Opens the image at the given
$ open-image --help
Open/view an image
Usage:
$ open-image <image-path>
<image-path> can be a filesystem path or url to the image
Examples:
$ open-image sample-image.jpg
$ open-image http://site.com/image.jpg
MIT License