{"id":872,"date":"2026-05-20T09:50:56","date_gmt":"2026-05-20T01:50:56","guid":{"rendered":"https:\/\/junai.ai\/blog\/nodejs-repl-first-script-3\/"},"modified":"2026-05-20T09:50:56","modified_gmt":"2026-05-20T01:50:56","slug":"nodejs-repl-first-script-3","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/nodejs-repl-first-script-3\/","title":{"rendered":"REPL\uacfc \uccab \uc2a4\ud06c\ub9bd\ud2b8 \u2014 node \uba85\ub839\uc73c\ub85c JS \uc2e4\ud589\ud558\uae30"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 818 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root {--color-primary:#059669;--color-accent:#10b981;--color-bg:#fafbfc;--color-bg-card:#fff;--color-text:#1a202c;--color-text-muted:#64748b;--hero-start:#064e3b;--hero-end:#059669;}\n*{box-sizing:border-box;}\n.container{max-width:760px;margin:0 auto;padding:0 24px 80px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:80px 24px 60px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:14px;color:#6ee7b7;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:14px;}\n.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800;}\n.hero p{color:#d1fae5;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6;}\n.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block;}\narticle{padding-top:48px;}\narticle h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--color-accent);line-height:1.4;}\narticle h3{font-size:19px;margin:32px 0 12px;color:var(--color-primary);}\narticle p{margin:16px 0;}\narticle strong{color:var(--color-primary);font-weight:700;}\narticle code{background:#d1fae5;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;color:#065f46;}\n.databox{background:#d1fae5;border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px;}\n.databox strong{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}.tablewrap thead{display:none;}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}.tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}.tablewrap td:last-child{border-bottom:none;}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}}\n.code-block{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.6;margin:20px 0;overflow-x:auto;white-space:pre;}\n.cta{background:linear-gradient(135deg,#059669 0%,#10b981 100%);color:#fff;padding:28px 24px;border-radius:12px;margin:48px 0 0;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:20px;}\n.cta p{color:#d1fae5;margin:0;font-size:15.5px;}\n.footer-nav{margin-top:32px;padding-top:20px;border-top:1px solid #e2e8f0;font-size:14px;color:var(--color-text-muted);}\n.footer-nav a{color:var(--color-primary);text-decoration:none;}\n@media (max-width:480px){.hero h1{font-size:26px;}.hero p{font-size:16px;}article h2{font-size:21px;}article h3{font-size:17px;}body{font-size:16px;}}\n<\/style>\n<section class=\"hero\">\n  <span class=\"eyebrow\">Node.js \uad50\uc7ac \u00b7 3\ud3b8 \u00b7 \uccab \uc2e4\ud589<\/span>\n  <h1>REPL\uacfc \uccab \uc2a4\ud06c\ub9bd\ud2b8 \u2014 node \uba85\ub839\uc73c\ub85c JS \uc2e4\ud589\ud558\uae30<\/h1>\n  <p>\ub300\ud654\ud615 \uc778\ud130\ub799\ud2f0\ube0c \ubaa8\ub4dc\uc640 \ud30c\uc77c \uc2e4\ud589, \ub458 \ub2e4 \uc190\uc5d0 \uc775\ud788\uc790.<\/p>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-51.jpg\" alt=\"\ud130\ubbf8\ub110 REPL \ud504\ub86c\ud504\ud2b8\uc5d0\uc11c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \ud55c \uc904\uc529 \uc2e4\ud589\ud558\ub294 \ucee8\uc149 \uc77c\ub7ec\uc2a4\ud2b8\">\n<\/section>\n\n<div class=\"container\">\n<article>\n\n<p>2\ud3b8\uc5d0\uc11c nvm \uc73c\ub85c Node \ub97c \uae54\uc558\ub2e4\uba74 \uc774\uc81c \uc9c4\uc9dc\ub85c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \uad74\ub824\ubcf8\ub2e4. \ub3c4\uad6c\ub294 \ub2e8 \ud558\ub098 \u2014 <code>node<\/code> \uba85\ub839. \uc774 \uba85\ub839\uc740 \ub450 \uac00\uc9c0 \ubaa8\ub4dc\ub85c \ub3d9\uc791\ud55c\ub2e4.<\/p>\n\n<p>\ud558\ub098\ub294 <strong>REPL<\/strong> \u2014 \ud55c \uc904\uc529 \uc785\ub825\ud558\uace0 \uc989\uc2dc \uacb0\uacfc\ub97c \ubcf4\ub294 \uc778\ud130\ub799\ud2f0\ube0c \ubaa8\ub4dc (\uacc4\uc0b0\uae30 \uac19\uc740 \ub290\ub08c). \ub2e4\ub978 \ud558\ub098\ub294 <strong>\ud30c\uc77c \uc2e4\ud589<\/strong> \u2014 <code>node hello.js<\/code> \ucc98\ub7fc \ubbf8\ub9ac \uc801\uc5b4\ub454 \ud30c\uc77c\uc744 \ud1b5\uc9f8\ub85c \ub3cc\ub9ac\ub294 \ubaa8\ub4dc. \uc77c\uc0c1\uc758 90% \ub294 \ud6c4\uc790\uc9c0\ub9cc, \ub458 \ub2e4 \uc54c\uc544\ub46c\uc57c \ub514\ubc84\uae45\u00b7\uc2e4\ud5d8\uc774 \ud3b8\ud558\ub2e4.<\/p>\n\n<h2>1. REPL \u2014 \ud55c \uc904\uc529 \uc785\ub825\ud558\uace0 \uc989\uc2dc \ubcf4\uae30<\/h2>\n\n<p>\ud130\ubbf8\ub110\uc5d0\uc11c \uc778\uc790 \uc5c6\uc774 <code>node<\/code> \ub9cc \uce58\uba74 REPL \uc774 \ub72c\ub2e4.<\/p>\n\n<div class=\"code-block\">$ node\nWelcome to Node.js v22.10.0.\nType &#8220;.help&#8221; for more information.\n&gt; 1 + 1\n2\n&gt; const x = 10\nundefined\n&gt; x * 3\n30\n&gt; console.log(&#8220;\uc548\ub155&#8221;)\n\uc548\ub155\nundefined\n&gt; .exit<\/div>\n\n<p><code>&gt;<\/code> \uac00 \uc785\ub825 \ub300\uae30 \ud504\ub86c\ud504\ud2b8. \ud55c \uc904 \uc785\ub825 \u2192 Enter \u2192 \uc989\uc2dc \uacb0\uacfc. <code>const x = 10<\/code> \uac19\uc774 \uac12\uc774 \uc5c6\ub294 \ubb38\uc7a5\uc740 <code>undefined<\/code> \uac00 \uacb0\uacfc\ub85c \ucc0d\ud78c\ub2e4 (\uc120\uc5b8 \uc790\uccb4\ub294 \ud45c\ud604\uc2dd \uac12\uc774 \uc5c6\uc5b4\uc11c).<\/p>\n\n<p>REPL \uc758 \uc815\uccb4\ub294 4\ub2e8\uc5b4 \uc57d\uc790 \u2014 <strong>R<\/strong>ead \u00b7 <strong>E<\/strong>val \u00b7 <strong>P<\/strong>rint \u00b7 <strong>L<\/strong>oop. \uc785\ub825\uc744 \uc77d\uace0, \ud3c9\uac00\ud558\uace0, \uacb0\uacfc\ub97c \ucd9c\ub825\ud558\uace0, \ub2e4\uc2dc \uc785\ub825 \ub300\uae30. \ubaa8\ub4e0 \uc778\ud130\ud504\ub9ac\ud130 \uc5b8\uc5b4\uac00 \ube44\uc2b7\ud55c REPL \uc744 \uac00\uc9c4\ub2e4 (Python \uc758 <code>python3<\/code>, Ruby \uc758 <code>irb<\/code>).<\/p>\n\n<div class=\"databox\">\n<strong>REPL \ub2e8\ucd95\ud0a4<\/strong> \u2014 <code>Ctrl+C<\/code> \ub450 \ubc88 \ub610\ub294 <code>.exit<\/code> \uc785\ub825\uc73c\ub85c \uc885\ub8cc. <code>.editor<\/code> \uba85\ub839\uc73c\ub85c \uc5ec\ub7ec \uc904 \ud3b8\uc9d1 \ubaa8\ub4dc. <code>\u2191<\/code> \ud654\uc0b4\ud45c\ub85c \uc9c1\uc804 \uc785\ub825 \ud638\ucd9c (\ubaa8\ub4e0 \uc178\uacfc \uac19\uc74c).\n<\/div>\n\n<h2>2. \ud30c\uc77c \uc2e4\ud589 \u2014 node \ud30c\uc77c\uba85.js<\/h2>\n\n<p>\uc2e4\uc81c \uac1c\ubc1c\uc740 \ud30c\uc77c\uc5d0 \ucf54\ub4dc\ub97c \uc801\uace0 \ud55c \ubc88\uc5d0 \uc2e4\ud589\ud558\ub294 \ubc29\uc2dd\uc774 \ud45c\uc900\uc774\ub2e4. <code>hello.js<\/code> \ub97c \ub9cc\ub4e4\uc790.<\/p>\n\n<div class=\"code-block\">\/\/ hello.js\nconst name = &#8220;\ubc15\uc900\uc131&#8221;;\nconsole.log(`\uc548\ub155, ${name}!`);\nconsole.log(&#8220;Node \ubc84\uc804:&#8221;, process.version);\nconsole.log(&#8220;\uc2e4\ud589 \uacbd\ub85c:&#8221;, process.cwd());<\/div>\n\n<p>\ud130\ubbf8\ub110\uc5d0\uc11c \uadf8 \ud3f4\ub354\ub85c \uc774\ub3d9 \ud6c4:<\/p>\n\n<div class=\"code-block\">$ node hello.js\n\uc548\ub155, \ubc15\uc900\uc131!\nNode \ubc84\uc804: v22.10.0\n\uc2e4\ud589 \uacbd\ub85c: \/home\/user\/learn-node<\/div>\n\n<p>\ub531 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc778\ub370, \ube0c\ub77c\uc6b0\uc800\uc5d4 \uc5c6\ub358 <code>process<\/code> \ub77c\ub294 \uac1d\uccb4\uac00 \ubcf4\uc778\ub2e4. <code>process.version<\/code>\u00b7<code>process.cwd()<\/code>\u00b7<code>process.env<\/code> \ucc98\ub7fc Node \uac00 \ucd94\uac00\ud55c \uac83\ub4e4\uc774\ub2e4. \ud30c\uc77c \uc2dc\uc2a4\ud15c\u00b7\ub124\ud2b8\uc6cc\ud06c\u00b7OS \uc815\ubcf4 \u2014 \ube0c\ub77c\uc6b0\uc800\uac00 \ub9c9\uc544\ub454 \uac83\ub4e4\uc774 \uc5ec\uae30\uc120 \ub2e4 \uc5f4\ub824\uc788\ub2e4.<\/p>\n\n<h2>3. REPL vs \ud30c\uc77c \uc2e4\ud589 \u2014 \uc5b8\uc81c \ubb34\uc5c7\uc744<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\uc0c1\ud669<\/th><th>\ub3c4\uad6c<\/th><th>\uc774\uc720<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>API \uc751\ub2f5 \ubaa8\uc591 \ube68\ub9ac \ud655\uc778<\/td><td data-label=\"\ub3c4\uad6c\">REPL<\/td><td data-label=\"\uc774\uc720\">\ud55c \uc904\uc529 \uc9da\uc5b4\uac00\uba70 \uac1d\uccb4 \uad6c\uc870 \ud30c\uc545<\/td><\/tr>\n<tr><td>\uc815\uaddc\uc2dd \ud328\ud134 \uc2e4\ud5d8<\/td><td data-label=\"\ub3c4\uad6c\">REPL<\/td><td data-label=\"\uc774\uc720\">\uc989\uc2dc \uacb0\uacfc, \uc870\uc815 \ube60\ub984<\/td><\/tr>\n<tr><td>\ub77c\uc774\ube0c\ub7ec\ub9ac \ud55c \ud568\uc218 \uc2dc\ud5d8<\/td><td data-label=\"\ub3c4\uad6c\">REPL<\/td><td data-label=\"\uc774\uc720\"><code>const fs = require('fs')<\/code> \ud6c4 \uc989\uc2dc \ud638\ucd9c<\/td><\/tr>\n<tr><td>10\uc904 \ub118\ub294 \ub85c\uc9c1<\/td><td data-label=\"\ub3c4\uad6c\">\ud30c\uc77c<\/td><td data-label=\"\uc774\uc720\">REPL \uc5d0\uc11c \uc798\ubabb \uce58\uba74 \ucc98\uc74c\ubd80\ud130 \ub2e4\uc2dc<\/td><\/tr>\n<tr><td>\uc2e4\uc81c \ud504\ub85c\uadf8\ub7a8 \uad6c\ub3d9<\/td><td data-label=\"\ub3c4\uad6c\">\ud30c\uc77c<\/td><td data-label=\"\uc774\uc720\">\ubc84\uc804 \uad00\ub9ac\u00b7\uc7ac\uc2e4\ud589\u00b7\ubc30\ud3ec \uac00\ub2a5<\/td><\/tr>\n<tr><td>\ud559\uc2b5 \ucd08\uae30 \uccab \uc2e4\uc2b5<\/td><td data-label=\"\ub3c4\uad6c\">REPL<\/td><td data-label=\"\uc774\uc720\">\ud30c\uc77c \ub9cc\ub4dc\ub294 \uac70 \uc790\uccb4\uac00 \ubd80\ub2f4\uc77c \ub54c<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>\uc694\uc57d: <strong>REPL \uc740 \uc2e4\ud5d8\uc2e4, \ud30c\uc77c\uc740 \uc791\uc5c5\uc7a5<\/strong>. \uc2e4\ud5d8\uc2e4\uc5d0\uc11c \uac80\uc99d\ub41c \ucf54\ub4dc\ub97c \uc791\uc5c5\uc7a5\uc73c\ub85c \uc62e\uaca8\uc640 \uad74\ub9b0\ub2e4.<\/p>\n\n<h2>4. -e \ud55c \uc904 \uc2e4\ud589\uacfc \uc154\ubc45 \ud2b8\ub9ad<\/h2>\n\n<p>REPL \ub3c4 \ud30c\uc77c\ub3c4 \uc544\ub2cc <strong>\ud55c \uc904\uc9dc\ub9ac \uc2e4\ud589<\/strong>\ub3c4 \uc788\ub2e4.<\/p>\n\n<div class=\"code-block\">$ node -e &#8220;console.log(1 + 1)&#8221;\n2\n$ node -e &#8220;console.log(process.env.HOME)&#8221;\n\/home\/user<\/div>\n\n<p>\uc178 \uc2a4\ud06c\ub9bd\ud2b8 \uc548\uc5d0\uc11c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ud55c \uc904\ub9cc \ub07c\uc6cc \uc4f8 \ub54c \uc720\uc6a9. <code>jq<\/code>\u00b7<code>awk<\/code> \uac00 \ubd80\uc871\ud560 \ub54c \ub300\uccb4\ub85c \uac00\ub2a5.<\/p>\n\n<p>\ub610 \ud558\ub098\uc758 \ud2b8\ub9ad \u2014 <strong>\uc154\ubc45<\/strong>\uc73c\ub85c <code>.js<\/code> \ud30c\uc77c\uc744 \uc2e4\ud589 \ud30c\uc77c\ucc98\ub7fc \ub9cc\ub4e0\ub2e4.<\/p>\n\n<div class=\"code-block\">#!\/usr\/bin\/env node\nconsole.log(&#8220;\uc2e4\ud589 \ud30c\uc77c\ucc98\ub7fc \ub3d9\uc791\ud569\ub2c8\ub2e4&#8221;);<\/div>\n\n<p>\ud30c\uc77c \uccab \uc904\uc5d0 <code>#!\/usr\/bin\/env node<\/code> \ub97c \ub123\uace0 <code>chmod +x hello.js<\/code> \ub85c \uad8c\ud55c\uc744 \uc8fc\uba74 <code>.\/hello.js<\/code> \ub9cc\uc73c\ub85c \uc2e4\ud589\ub41c\ub2e4. CLI \ub3c4\uad6c\ub97c \ub9cc\ub4e4 \ub54c \ud45c\uc900 \ud328\ud134.<\/p>\n\n<div class=\"warnbox\">\n<strong>\uc708\ub3c4\uc6b0 \uc8fc\uc758<\/strong> \u2014 \uc154\ubc45\uc740 \ub9ac\ub205\uc2a4\u00b7\ub9e5\uc5d0\uc11c\ub9cc \uc758\ubbf8\uac00 \uc788\ub2e4. \uc708\ub3c4\uc6b0\ub294 \uadf8\ub0e5 <code>node hello.js<\/code> \uac00 \uc815\ub2f5. \uc154\ubc45 \uc904\uc774 \uc788\uc5b4\ub3c4 \ubb34\uc2dc\ub418\ub2c8\uae4c \ud06c\ub85c\uc2a4 \ud50c\ub7ab\ud3fc \ud328\ud0a4\uc9c0 \ub9cc\ub4e4 \ub550 <code>package.json<\/code> \uc758 <code>bin<\/code> \ud544\ub4dc\ub97c \uac19\uc774 \uc4f4\ub2e4 (5\ud3b8 npm \ucc55\ud130\uc5d0\uc11c).\n<\/div>\n\n<h2>5. node &#8211;watch \uc640 \ub514\ubc84\uac70 \u2014 \uc0b4\uc9dd \ub9db\ubcf4\uae30<\/h2>\n\n<p>\uc2e4\uc804\uc5d0\uc11c \uc790\uc8fc \uc4f0\ub294 \ub450 \uac00\uc9c0 \ud50c\ub798\uadf8.<\/p>\n\n<h3>&#8211;watch \u2014 \ucf54\ub4dc \uc800\uc7a5\ud558\uba74 \uc790\ub3d9 \uc7ac\uc2e4\ud589<\/h3>\n\n<div class=\"code-block\">$ node &#8211;watch hello.js\n\uc548\ub155, \ubc15\uc900\uc131!\nCompleted running &#8216;hello.js&#8217;<\/div>\n\n<p>\ud30c\uc77c\uc744 \uc218\uc815\ud558\uace0 \uc800\uc7a5\ud558\uba74 \uc989\uc2dc \ub2e4\uc2dc \uc2e4\ud589\ub41c\ub2e4. <code>nodemon<\/code> \uac19\uc740 \uc678\ubd80 \ub3c4\uad6c \uc5c6\uc774 Node 19 \ubd80\ud130 \uae30\ubcf8 \ub0b4\uc7a5. \uc9e7\uc740 \uc2a4\ud06c\ub9bd\ud2b8 \ubc18\ubcf5 \ud14c\uc2a4\ud2b8\ud560 \ub54c \ud3b8\ud558\ub2e4.<\/p>\n\n<h3>&#8211;inspect \u2014 Chrome \uc73c\ub85c \ub514\ubc84\uac70 \ubd99\uc774\uae30<\/h3>\n\n<div class=\"code-block\">$ node &#8211;inspect hello.js\nDebugger listening on ws:\/\/127.0.0.1:9229\/&#8230;<\/div>\n\n<p>\ud06c\ub86c \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>chrome:\/\/inspect<\/code> \ub97c \uc5f4\uba74 \uadf8 \ud504\ub85c\uc138\uc2a4\ub97c \uc7a1\uace0 \ube0c\ub808\uc774\ud06c\ud3ec\uc778\ud2b8\u00b7\ucf58\uc194\uc744 \uc4f8 \uc218 \uc788\ub2e4. \uc5b4\ub824\uc6b4 \ub514\ubc84\uae45 \ub54c \ub4e0\ub4e0.<\/p>\n\n<h3>\uc694\uc57d \u2014 3\ud3b8 \uc88c\ud45c<\/h3>\n\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc815\ub9ac. <code>node<\/code> \uba85\ub839\uc740 \ub450 \uac00\uc9c0 \ubaa8\ub4dc \u2014 \uc778\ud130\ub799\ud2f0\ube0c <strong>REPL<\/strong> (\uc2e4\ud5d8\uc2e4) \uacfc <strong>\ud30c\uc77c \uc2e4\ud589<\/strong> (\uc791\uc5c5\uc7a5). \ud55c \uc904\uc9dc\ub9ac \ud2b8\ub9ad\uc73c\ub85c <code>-e<\/code>, \uc2e4\ud589 \ud30c\uc77c\ud654\uc5d4 \uc154\ubc45. \uc2e4\uc804 \ubcf4\uc870\ub85c <code>--watch<\/code> (\uc790\ub3d9 \uc7ac\uc2e4\ud589) \uc640 <code>--inspect<\/code> (Chrome DevTools \ub514\ubc84\uac70). \ub2e4\uc74c \ud3b8\uc5d0\uc11c \uc9c4\uc9dc \ud070 \uc8fc\uc81c \u2014 <strong>\ubaa8\ub4c8 \uc2dc\uc2a4\ud15c CommonJS vs ESM<\/strong> \uc758 \ucc28\uc774\ub97c \ubcf8\ub2e4. 30\ub144 \ubb35\uc740 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ubaa8\ub4c8 \ubb38\uc81c\uc758 \uacb0\ub9d0 \ud3b8.<\/p>\n\n<div class=\"cta\">\n<h3>\ub2e4\uc74c \ud3b8 \uc608\uace0 \u2014 \ubaa8\ub4c8 \uc2dc\uc2a4\ud15c (CommonJS vs ESM)<\/h3>\n<p><code>require<\/code> \uc640 <code>import<\/code> \uc758 \ucc28\uc774, \uc5b8\uc81c \ubb34\uc5c7\uc744 \uc4f0\ub294\uac00. 4\ud3b8.<\/p>\n<\/div>\n\n<div class=\"footer-nav\">\n\uc2dc\ub9ac\uc988 \u00b7 <a href=\"https:\/\/junai.ai\/blog\/category\/nodejs\/\">\uc27d\uac8c \ubc30\uc6b0\ub294 Node.js<\/a> \u00b7 \uc774\uc804: <a href=\"https:\/\/junai.ai\/blog\/nodejs-install-nvm-2\/\">Ch.2 nvm \uc124\uce58<\/a>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>node \uba85\ub839\uc73c\ub85c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc2e4\ud589\ud558\ub294 \ub450 \uac00\uc9c0 \ubc29\ubc95. \uc778\ud130\ub799\ud2f0\ube0c REPL \uacfc \ud30c\uc77c \uc2e4\ud589. \ucc28\uc774\uc640 \uc5b8\uc81c \ubb34\uc5c7\uc744 \uc4f0\ub294\uac00. \uad50\uc7ac 3\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":818,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=872"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/818"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}