GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: standardize on "host name" in fs.md · nodejs/node@47f71de

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • fs.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ fs.readFileSync(fileUrl);
175175

176176
Using WHATWG [`URL`][] objects might introduce platform-specific behaviors.
177177

178-
On Windows, `file:` URLs with a hostname convert to UNC paths, while `file:`
178+
On Windows, `file:` URLs with a host name convert to UNC paths, while `file:`
179179
URLs with drive letters convert to local absolute paths. `file:` URLs without a
180-
hostname nor a drive letter will result in a throw:
180+
host name nor a drive letter will result in a throw:
181181

182182
```js
183183
// On Windows :
@@ -199,7 +199,7 @@ fs.readFileSync(new URL('file:///c/p/a/t/h/file'));
199199
`file:` URLs with drive letters must use `:` as a separator just after
200200
the drive letter. Using another separator will result in a throw.
201201

202-
On all other platforms, `file:` URLs with a hostname are unsupported and will
202+
On all other platforms, `file:` URLs with a host name are unsupported and will
203203
result in a throw:
204204

205205
```js

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.