Node.js ์ค์น ๋ฐ ์คํ - ์๋ฐ์คํฌ๋ฆฝํธ๋ง ์๋ฉด ํด๋ผ์ด์ธํธ,์๋ฒ ๊ฐ๋ฐ์ด ๋ค ๋๋๊ฑฐ์ผ! Node.js ์๋ฒ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด (JS) JS๋ง ์๋ฉด ํด๋ผ์ด์ธํธ, ์๋ฒ ๊ฐ๋ฐ ๋ชจ๋ ๊ฐ๋ฅ ๋ด๊ฐ ์ํ๋ ๊ธฐ๋ฅ ๋น ๋ฅด๊ฒ ๋ง๋ค ์ ์์ NPM (Node Package Manager); ์คํ ์์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ํ๊ณ ์ด๋ฏธ ์๋ ๋ชจ๋์ ์ ๊ฐ์ ธ๋ค ์ฐ๊ธฐ๋ง ํด๋ ๊ฐ๋ฐ์ด ๋งค์ฐ ํธํด์ง ๊ธฐ๋ณธ ์ค์น moment ๋ชจ๋์ ํตํ ์ค์ต const moment = require('moment'); console.log('today', moment().format('YYYY-MM-DD')); console.log('today+1', moment().add(1, 'day').format('YYYY-MM-DD')); console.log('week', moment().add(1, 'week').format('YYYY-MM-DD')); console.log('month', moment().add(1, 'month').format('YYYY-MM-DD')); [Note] NPM; node.js ๋ชจ๋์ ๋ชจ์๋ ์ ์ฅ์ node.js์ express ๋ชจ๋ (์น์๋ฒ) Reference