🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

open-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-cli

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

8.0.0
latest
Source
npm
Version published
Weekly downloads
173K
11.5%
Maintainers
1
Weekly downloads
 
Created

What is open-cli?

The open-cli npm package allows you to open files, URLs, or applications using the command line. It is a simple and efficient tool for automating the opening of various resources directly from the terminal.

What are open-cli's main functionalities?

Open a URL

This feature allows you to open a URL in the default web browser. The code sample demonstrates how to open Google's homepage.

open-cli 'https://www.google.com'

Open a file

This feature allows you to open a file with the default application associated with its file type. The code sample demonstrates how to open a text file located at a specific path.

open-cli './path/to/file.txt'

Open an application

This feature allows you to open an application by its name. The code sample demonstrates how to open the Calculator application.

open-cli 'Calculator'

Other packages similar to open-cli

Keywords

cli-app

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts