All Projects β†’ rhysd β†’ electron-open-url

rhysd / electron-open-url

Licence: other
Open URL with Electron window from command line or Node.js program

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to electron-open-url

coinbash
πŸ’° A bash script (CLI) for displaying crypto currencies market data in a terminal πŸ–₯
Stars: ✭ 110 (+587.5%)
Mutual labels:  command-line-tool
utility
Collection of command line utilities
Stars: ✭ 36 (+125%)
Mutual labels:  command-line-tool
starcli
✨ Browse trending GitHub projects from your command line
Stars: ✭ 436 (+2625%)
Mutual labels:  command-line-tool
malli-cli
Command-line interface from the comfort of a metosin/malli schema
Stars: ✭ 36 (+125%)
Mutual labels:  command-line-tool
xcode-cli
Command line helpers for Xcode
Stars: ✭ 17 (+6.25%)
Mutual labels:  command-line-tool
Node-CLI-Tips-Tricks
πŸ“Ÿ NodeCLI.com repo with Node.js CLI best practices and production-ready tips & tricks.
Stars: ✭ 132 (+725%)
Mutual labels:  command-line-tool
open-psd2
An open source framework for using banking API's built for PSD2 regulation.
Stars: ✭ 20 (+25%)
Mutual labels:  open
shy
πŸ’€ bare-bones ssh launcher
Stars: ✭ 51 (+218.75%)
Mutual labels:  command-line-tool
AkamaiOPEN-edgegrid-php-client
PHP client library for Akamai {OPEN} EdgeGrid Authentication scheme (based on Guzzle)
Stars: ✭ 38 (+137.5%)
Mutual labels:  open
doi2bib
πŸ“ Easily convert Digital Object Identifier (DOI) and Uniform Resource Locator (URL) to BibTeX and DOI to plain text.
Stars: ✭ 28 (+75%)
Mutual labels:  command-line-tool
json2xml
json to xml converter in python3
Stars: ✭ 76 (+375%)
Mutual labels:  command-line-tool
dockerize
Utility to simplify running applications in docker containers
Stars: ✭ 91 (+468.75%)
Mutual labels:  command-line-tool
whats
🌐 a terminal translation tool
Stars: ✭ 16 (+0%)
Mutual labels:  command-line-tool
diskusage
FANTASTIC SPEED utility to find out top largest folders/files on the disk.
Stars: ✭ 64 (+300%)
Mutual labels:  command-line-tool
keeperfx
Open source remake and Fan Expansion of Dungeon Keeper.
Stars: ✭ 128 (+700%)
Mutual labels:  open
idoc
πŸ“’πŸ“šGenerate beautiful interactive documentation and Open-API 3.0 spec file from your existing Laravel app.
Stars: ✭ 95 (+493.75%)
Mutual labels:  open
moshpit
A powerful cross-platform command-line tool for datamoshing.
Stars: ✭ 74 (+362.5%)
Mutual labels:  command-line-tool
gq-gmc-control
Control tool for the GQ GMC Geiger Counters.
Stars: ✭ 34 (+112.5%)
Mutual labels:  command-line-tool
imgur-scraper
Retrieve years of imgur.com's data without any authentication.
Stars: ✭ 26 (+62.5%)
Mutual labels:  command-line-tool
jira-cli
πŸ”₯ [WIP] Feature-rich interactive Jira command line.
Stars: ✭ 809 (+4956.25%)
Mutual labels:  command-line-tool

electron-open-url

This is a package to open something with Electron window. You can use this from both command line and Node.js program.

This program continues to use the same window. So it does not open multiple tabs when you use this package repeatedly. This package is assumed to be used from other command line tools, editors or Node.js programs which opens some web page or file repeatedly.

Install

$ npm install -g electron-open-url electron

Note that this package registers 'electron' package as peer dependency. So you need to install it additionally. This is because make users to determine where the 'electron' package should be installed.

Usage

From command line

screen shot

electron-open command is available.

For example, below opens Twitter page with Electron window.

$ electron-open https://twitter.com/

You want to open Twitter's Notification page. Then simply execute below.

$ electron-open https://twitter.com/i/notifications

The notification page will be opened in the same window.

For more usage, please check electron-open --help.

From Node.js program

const open = require('electron-open');

open({
    target: 'https://twitter.com',
    fallback: true
});

The target property is a thing you want to open in Electron window. If fallback property is set to true, it opens with OS's open method (like open command in macOS or xdg-open in X11) when 'electron' package was not found.

open() returns instance of ChildProcess if successfully process spawned. If fallback command dispatched, it returns null. When spawning failed, it throws an error.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].