느긋하게
현재 디렉토리 가져오기 본문
Node.js에서 현재 위치 및 현재 파일 위치 얻어오는 방법
console.log(__dirname)
console.log(path.dirname(__filename));
console.log(__filename);
'개발괴발 > javascript' 카테고리의 다른 글
java script에서 focus된 element를 찾는 방법 (0) | 2019.03.29 |
---|---|
부모 디렉토리 명 가져오기 (0) | 2018.07.18 |
xml2js 사용법 (0) | 2018.07.17 |
한글 깨짐 현상... (0) | 2018.07.12 |
Comments