본문 바로가기

반응형

Node.js

(5)
[Node.js] Excel.js 사용법 총정리 / How to use Exceljs (테이블 만들기, insertRows, columns, value 등) 이번 프로젝트 중 가장 시간도 오래걸리고 어려웠던 엑셀 파일 만들어 내보내기 를 정리해서 기록으로 남기기 기존에는 xlsx를 익히고 사용했었다가 css가 유료인걸 뒤늦게 알았다.. 👼🏼 찾아보니 많은 개발자들이 이 사실에 빡치고 exceljs로 갈아타고 있다고 한다. 며칠 전 적은 xlsx 사용법 포스팅 https://blckchainetc.tistory.com/426 [Node.js] How to use xlsx with Typescript / xlsx 사용법 설치하기 Installation npm install xlsx 설치 후, 아래와 같이 두 가지의 가져오기 방법이 있다. and now you can use XLSX in 2 ways. - require ( default ) const XLSX =..
[컴퓨터 네트워크] 웹 서비스 동작 원리 / URL 뜻 / APM 동작 원리 책으로 배우는 컴퓨터 네트워크 목차 1) url 의 의미 뜻 2) 웹 서비스 동작 원리 3) APM 동작 원리 1. Url (Uniform Resource Locator ) 우리가 자주 쓰는 url 주소는 아래의 구성으로 이루어져있다. 호스트는 우리가 알기 쉽게 만든 "이름"이라고 생각하면 되고 사실상 ip 주소를 말한다. 호스트: ip 를 저장하는 DNS 서비스로 해당 호스트명으로 ip를 찾아 사용한다. https://www.naver.com/shopping/payment [https] :// [www.naver.com] / [shopping/payment] [프로토콜] : // [host호스트] / [path 내부경로] 2. 웹 서비스 동작 원리 1. 사용자가 웹 브라우저에 url 주소 입력 2. c..
[Exceljs] worksheet.columns location 엑셀 컬럼 위치 지정하기 node.js + typescript + exceljs 로 엑셀 파일 생성 및 내보내기를 진행하다가 Exceljs의 addTable 로 테이블을 작성했었다. 이후에 코드리뷰를 받고 table 생성을 아예 하지않고 아예 columns 추가 및 데이터를 InsertRows로 생성하도록 변경했다. 여기서 내가 어려움이 있었던 부분은 I decided to use "worksheet.columns" + "insertRows" instead of using "addTable" function because the data I got from db is an array of objects and I had to refine the data for the rows of table again. but I can jus..
Node.js excel file download 엑셀 다운로드 사용법 예제 Node.js Typescript Exceljs 로 엑셀파일 다운로드되도록 만들기 How to download exce(.xlsx) file in Node.js with TypeScript const exec = async (res) => { workbook 및 worksheet 생성 res.setHeader( 'Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', ); res.setHeader( 'Content-Disposition', `attachment; filename=${fileName}.xlsx`, ); await workbook.xlsx.write(res); }; export default { e..
[Node.js] How to use xlsx with Typescript / xlsx 사용법 xlsx 를 사용하기 전 엑셀에 CSS 등 꾸미는 것 (배경 색, 정렬 등등) 이 필수라면 xlsx보다 excel.js 를 권합니다! (xslx 실컷 사용하다가 css 가 유료인걸 뒤늦게 알고 Exceljs로 옮김) 👇👇👇 https://blckchainetc.tistory.com/entry/Nodejs-Exceljs-%EC%82%AC%EC%9A%A9%EB%B2%95-%EC%B4%9D%EC%A0%95%EB%A6%AC-How-to-use-Exceljs-%ED%85%8C%EC%9D%B4%EB%B8%94-%EB%A7%8C%EB%93%A4%EA%B8%B0-insertRows-columns-value-%EB%93%B1 [Node.js] Excel.js 사용법 총정리 / How to use Exceljs (테이블 ..

반응형