Giter Site home page Giter Site logo

Comments (2)

michaellzc avatar michaellzc commented on September 22, 2024

@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.

karlhorky avatar karlhorky commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.