일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Node.js
- 위키백과
- node winston
- 2주차
- 웹 스크래핑(크롤링)
- 부트스트랩
- 노드 윈스턴
- Sequelize
- 3주차
- Transaction
- nginx
- 1주차
- db
- OpenAPI
- 트랜잭션
- SQL
- post
- 숙제
- HTTPS
- NoSQL
- cors
- 5주차
- 비동기
- 4주차
- 스파르타코딩클럽
- Get
- 개발일지
- 항해99
- MongoDB
- JWT
Archives
- Today
- Total
목록
728x90
node에서 엑셀파일 올리기 (1)
728x90
얼음꽃의 일지
[JS] multer, xlsx를 이용한 엑셀파일 데이터 읽기
* 엑셀파일은 xlsx 형식 이어야 합니다. * multer를 이용하는건 스토리지에 저장이 아닌 임시로 넣어두고 불러오기 입니다. 1. 설치 -> npm install express multer xlsx 2. 코드 작성 const express = require('express'); const multer = require('multer'); const xlsx = require('xlsx'); const app = express(); const port = 3000; // 파일을 메모리에 저장하는 storage 설정 const storage = multer.memoryStorage(); const upload = multer({ storage: storage }); // 라우트 컨트롤러 설정 const..
잡다한 지식
2024. 1. 22. 12:14