Skip to content

Commit c4081eb

Browse files
authored
標準モジュールの表記を統一 (#736)
1 parent cfb4b1a commit c4081eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/3-web-servers/04-module/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ console.log(add(3, 4));
8888

8989
## 標準<Term>モジュール</Term>
9090

91-
Node.js の [`fs` 標準モジュール](https://nodejs.org/api/fs.html) を用いると、Node.js からファイルの読み書きを行うことができます。`fs` モジュールの [`readFileSync` 関数](https://nodejs.org/api/fs.html#fsreadfilesyncpath-options)は、ファイルの読み込みを行う関数で、第 1 引数にファイルへのパスを指定し、第 2 引数には文字コードを指定します。
91+
Node.js の [`fs` モジュール](https://nodejs.org/api/fs.html) を用いると、Node.js からファイルの読み書きを行うことができます。`fs` モジュールの [`readFileSync` 関数](https://nodejs.org/api/fs.html#fsreadfilesyncpath-options)は、ファイルの読み込みを行う関数で、第 1 引数にファイルへのパスを指定し、第 2 引数には文字コードを指定します。
9292

9393
```javascript title="main.mjs"
9494
import { readFileSync } from "node:fs";

docs/3-web-servers/05-server/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ node main.mjs
7171

7272
そして [`express.Response#send` メソッド](https://expressjs.com/ja/api.html#res.send)により、クライアントが必要なデータを送信することができます。
7373

74-
:::tip[`http`標準<Term>モジュール</Term>]
75-
`express` を使わずに Node.js 単体で Web サーバーを作成するには、`http` 標準<Term>モジュール</Term>を使用します。
74+
:::tip[`http` <Term>モジュール</Term>]
75+
`express` を使わずに Node.js 単体で Web サーバーを作成するには、`http` <Term>モジュール</Term>を使用します。
7676

77-
`http` 標準モジュールを使って 簡単な Web サーバーを構築すると以下のようなコードになります。
77+
`http` モジュールを使って 簡単な Web サーバーを構築すると以下のようなコードになります。
7878

7979
```javascript title="main.mjs"
8080
import { Server } from "http";

0 commit comments

Comments
 (0)