Comments (2)
@karlhorky Hi, sorry for the late reply, school can get real stressful in summer :(
The incentive of this package is driven by gatsbyjs/gatsby#6550
here's why I hesitate to contribute it back to opn
:
@m-allanson I think reuseing the same tab is really a web development specific thing, e.g. http://localhost:8000 and opn isn’t just for opening an URL in browser, it also supprts stuffs like image, text file and more options.
Originally posted by @ExiaSR in gatsbyjs/gatsby#6550 (comment)
that said, I am definitely open to contribute back to upstream if there is need
from better-opn.
sorry for the late reply, school can get real stressful in summer :(
No worries, thanks for the reply!
I am definitely open to contribute back to upstream if there is need
@sindresorhus actually mentioned in sindresorhus/open#31 (emphasis mine):
You could probably use AppleScript to achieve what you want, but that's way out of scope for this module.
I've asked if this is still the status quo.
reuseing the same tab is really a web development specific thing
opn isn’t just for opening an URL in browser, it also supprts stuffs like image, text file and more options
Ah interesting, good points.
Then I guess for this reason I would suggest renaming this module to something that doesn't infer that this is a superset of the other module ("better"). For me it was confusing, at least.
What I would see as a good angle would be to market it as a standalone (zero dependency) version of react-dev-utils/openBrowser
. The following code works well, but it has problems with dependency hell.
const openBrowser = require('react-dev-utils/openBrowser');
openBrowser('http://localhost:6006');
from better-opn.
Related Issues (13)
- How to get the opt configuration document ? HOT 5
- Add integration test to see if tab is reused over different run.
- Pass only host to applescript HOT 1
- Instead of opening my default macOS browser, opens Ubuntu VM through Parallels with Chromium HOT 1
- Browser not opened on Windows ARM64 HOT 3
- [feature] Request type file HOT 1
- add googel chrome dev HOT 2
- this url will open twice
- Opening browser causes a change in the window title HOT 4
- Query on setting the default command shell HOT 1
- Colon-delimitation of commands in `BROWSER` is not respected HOT 1
- Should respect OS user preferences rather than default to a "better" browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-opn.