open-image
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

open-image

Open/view an image.

Installation

You can install it locally to use the API:

npm install open-image

or globally to use the CLI:

npm install -g open-image

Usage

const openImage = require('open-image');
 
openImage('/path/or/url/to/image.png');

API

  • openImage(imagePath)
    • Opens the image at the given imagePath

CLI

$ 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

License

MIT License

Package Sidebar

Install

npm i open-image

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

11.5 kB

Total Files

10

Last publish

Collaborators

  • arnellebalane