Comments (4)
A few questions:
- Are
--github
and--homepage
mutually exclusive the same wayopen
andhomepage
are? - I am assuming this should rely on the "repository" field. What about cases in which it is not github? Maybe use "repo" instead?
- What about non-http repository fields? Or maybe we should only rely on
packageJson?.repository?.url
for safety? - it will limit the amount of repos that will actually be able to make use of it, though. Alternatively, we can run a url validity check. Would it be cool if I install an external dependency for that?
from qnm.
- You are correct, currently
--homepage
does this functionality, and uses npm own words so I think that it's clear enough.
open
will open the package.json of a chosen package in your editor, so it's different.
-
We could use the repository field if it starts with
https
since GitHub knows to redirect. -
Good point, yeah sure, we can add another dependency (we're using ncc to bundle everything so it will run fast when using
npx
)
To say the truth I haven't used the --homepage
flag myself, since for the most part, I just need to know the local versions, so I wouldn't invest a lot in supporting edge cases of this feature. Unless there are people who will ask for it.
from qnm.
Regarding 1. I meant that when using open
, the function returns, so the homepage
option is ignored. My question is when using homepage
along with repo
, should it also immediately return as well, or should it open both the homepage and the repo project in the browser?
from qnm.
I don't mind, feel free to choose what you think is best
from qnm.
Related Issues (20)
- FR: Support for monorepos within subdirectory? HOT 15
- Dedupe the reasons for a module to be installed
- Use Ellipsis when there are more than 3 reasons for having a module HOT 1
- ENAMETOOLONG: name too long, scandir xxx HOT 1
- Add pnpm support? HOT 8
- Bring back shell autocompletions HOT 1
- Should this work in Windows Anaconda? HOT 3
- What does count actually mean? HOT 3
- Option `--disable-colors` seems not to be working HOT 1
- fish completions command error HOT 1
- find version in node javascript HOT 1
- Recently changed dependencies HOT 5
- Add a way to include bundled dependencies HOT 5
- Mark a dependency with (resolutions) in case it's affected by yarn's resolutions
- Mark a dependency with (overrides) in case it's affected by npm's overrides
- Idea: Display nohoist indication for packages that affected by the nohoist configuration HOT 1
- Support parsing yarn 3 lock files
- Bug: qnm spawns check.js which eats CPU HOT 3
- Windows: Unable to use on scoped packages HOT 3
- Scoped packages should be displayed using `/` separator, regardless of OS HOT 7
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 qnm.