File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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"
9494import { readFileSync } from " node:fs" ;
Original file line number Diff line number Diff 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"
8080import { Server } from " http" ;
You can’t perform that action at this time.
0 commit comments