본문 바로가기

컴퓨터/NodeJS

NodeJS networkInterfaces 로컬 네트워크 정보 const os = require("os"); const networkInterfaces = os.networkInterfaces(); console.log(networkInterfaces); 로컬의 IP 주소 등을 알 수 있다.
npm xml-js app$ npm install xml-js --save const convert = require("xml-js"); const result = convert.xml2json(xml, {compact: true, spaces: 2});
GITHUB https://github.com/ GitHub: Where the world builds software GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com [git 설치하기] ~$ sudo apt install git [사용자 보기] ~$ git config --list [사용자 설정하기] ~$ git config --global user.email "「이메일주소」" ~$ git..
json2xlsx 사용법 (데이터베이스 조회 결과를 엑셀 파일로 다운로드) ▩ 참고 https://github.com/digplan/json2xlsx GitHub - digplan/json2xlsx: Pipe JSON to Excel spreadsheet Pipe JSON to Excel spreadsheet. Contribute to digplan/json2xlsx development by creating an account on GitHub. github.com ▩ 패키지 설치 ~/app$ npm install json2xlsx --save ▩ 객체 DB의 select 결과인 result 를 사용한다. ▩ 모듈 추출 const json2xlsx = require("json2xlsx"); ▩ 엑셀파일 쓰기 json2xlsx.write(파일명, 시트명, result);
019. EJS [설치] ~/app$ npm install ejs [문자열 랜더링] [변수 랜더링] [HTTML 랜더링] [다른 EJS 랜더링] //서버에서 전달 돼 온 data [if] [switch] blah4 blah5 [for]