npmserve icon indicating copy to clipboard operation
npmserve copied to clipboard

support --registry flag in addition to NPMSERVE_ORIGIN

Open rbuckheit opened this issue 9 years ago • 2 comments

let's make this more similar to npm as @davidchambers suggests. Instead of requiring NPMSERVE_ORIGIN, users should be able to set a global NPMSERVE_REGISTRY or pass via the command line, ex:

npmserve install --registry https://some.url.com

rbuckheit avatar Apr 08 '16 22:04 rbuckheit

After making the suggestion I realized --registry is potentially confusing since the npmserve server will in turn make requests to an npm registry. Perhaps --origin is a better name for the option.

I certainly prefer command-line options to environment variables in most cases. :)

davidchambers avatar Apr 08 '16 22:04 davidchambers

totally agree @davidchambers, much more convenient to type and less state-dependent. I like the idea of using --origin to in order to avoid overloading --registry.

rbuckheit avatar Apr 08 '16 23:04 rbuckheit