npmserve
npmserve copied to clipboard
support --registry flag in addition to NPMSERVE_ORIGIN
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
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. :)
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.