open-cli
Open stuff like URLs, files, executables. Cross-platform.
Last updated 2 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install open-cli 
SYNC missed versions from official npm registry.

open-cli Build Status

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 can't 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.

Related

  • open - API for this module

Current Tags

  • 6.0.1                                ...           latest (2 months ago)

9 Versions

  • 6.0.1                                ...           2 months ago
  • 6.0.0                                ...           2 months ago
  • 5.0.0                                ...           a year ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 3
This Week 73
This Month 345
Last Day 8
Last Week 72
Last Month 475
Dependencies (5)
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |