Node.js 파일 경로
경로에서 정보 가져오기
예제
const path = require('node:path');
const notes = '/users/joe/notes.txt';
path.dirname(notes); // /users/joe
path.basename(notes); // notes.txt
path.extname(notes); // .txt경로로 작업하기
Last updated