Skip to content

docs(readme): document file:// mirrors as a local download source - #405

Merged
ekalinin merged 1 commit into
masterfrom
docs/local-mirror-file-url
Sep 20, 2026
Merged

ekalinin merged 1 commit into
masterfrom
docs/local-mirror-file-url

Conversation

@ekalinin

Copy link
Copy Markdown
Owner

--mirror has accepted a full URL since #252, and urlopen handles file://, so a local directory laid out like nodejs.org already works as a download source - it is just undocumented: the README only shows an https mirror.

  • README: an example with --mirror=file:///srv/node-mirror and a note in the --mirror description
  • a test that resolves latest and lists versions from a local index.json, without network

Closes #193

A local directory laid out like nodejs.org already works as a mirror, but
only https mirrors were documented. Add an example, mention it in the
--mirror description and cover it with a test that lists versions from a
local index.json.

Closes #193
@ekalinin
ekalinin merged commit 74fd0b2 into master Sep 20, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local download directory

1 participant