Open is a cross-platform Node.js package for launching URLs, files, directories, and executables from command-line tools or scripts. It uses the operating system's default application unless developers request a specific program. Applications can also pass command-line arguments to the program being opened. The package works across macOS, Windows, Linux, and Windows Subsystem for Linux environments. On Linux, it includes an up-to-date xdg-open implementation, while WSL support can translate paths for Windows applications. Open uses process spawning rather than shell execution, which avoids several problems associated with command-string execution. It is distributed as a native ESM package and expects developers to sanitize untrusted values before opening them.

Features

  • Cross-platform URL and file opening
  • Default or explicitly selected application launching
  • Application argument support
  • Windows Subsystem for Linux path support
  • Bundled Linux xdg-open integration
  • Process spawning without shell execution

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Open

Open Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Open!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

16 hours ago