JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 182543
  • Score
    100M100P100Q161921F
  • License MIT

Open stuff like URLs, files, executables. Cross-platform.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    open-cli

    Open stuff like URLs, files, executables. Cross-platform.

    Install

    npm install --global open-cli

    Usage

    $ open-cli --help
    
      Usage
        $ open-cli <file|url> [--wait] [--background] [-- <app> [args]]
        $ cat <file> | open-cli [--extension] [--wait] [--background] [-- <app> [args]]
    
      Options
        --wait         Wait for the app to exit
        --background   Do not bring the app to the foreground (macOS only)
        --extension    File extension for when stdin file type cannot be detected
    
      Examples
        $ open-cli https://sindresorhus.com
        $ open-cli https://sindresorhus.com -- firefox
        $ open-cli https://sindresorhus.com -- 'google chrome' --incognito
        $ open-cli unicorn.png
        $ cat unicorn.png | open-cli
        $ echo '<h1>Unicorns!</h1>' | open-cli --extension=html

    The following file types are automagically detected when using stdin mode.

    • open - API for this module