Supported input formats #365
Locked
oBusk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While working on #354, I need somewhere to jot down what kind of inputs we want to support so that we can make sure we handle all the inputs that
npm diff
handles.npm-package-arg
typesMost cases will be
range
,version
andtag
.We can obviously ignore
file
anddirectory
since they are irrelevant as a service.git
andremote
are interesting and could be investigated. ifnpm diff
supports it, we could try to do it.Same goes for
alias
Supported Inputs
Taking suggestions from
range
casesgit
,alias
, andremote
npa().type
npm diff
Supportsnpmlibdiff
Supportschalk
tag
chalk@latest
tag
chalk@next
tag
[email protected]
version
[email protected]
version
chalk@^1
range
[email protected]
range
chalk@~1.0
range
[email protected]
range
chalk@>1.0.0
range
chalk@^3.0.0-beta
range
[email protected] - 2.3
range
chalk@2^ || ^3
range
myalias@npm:chalk
alias
chalk/chalk
git
github:chalk/chalk
git
chalk/chalk#b68c8b5
git
Special cases where package is
Conclusions
<
>
operators into CLI since they are read as pipe operatorsBeta Was this translation helpful? Give feedback.
All reactions