Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- node.js
- gogs private git
- shellcraft
- CODEGATE2018
- Codegate
- pwnable
- node
- NGINX
- codegate2017
- pwntools
- blueborne
- openctf
- doorlock
- Branch
- xlsx
- 코드게이트2017
- lob
- 코드게이트
- npm
- gogs
- 코드게이트 주니어
- https설정
- https
- Git
- 도메인 https
- CVE
- Hacking
- 노드 엑셀
- BLUETOOTH
- module
Archives
- Today
- Total
고졸백수해킹일기
[node]xlsx 모듈 사용법 본문
sudo npm install xlsx //모듈 설치
사용법
const XLSX = require('xlsx');
let workbook = XLSX.readFile('a.xlsx');
let sheet = workbook.SheetNames[0]; // 배열이므로 .length를 사용하여 갯수 확인가능
let worksheet = workbook.Sheets[sheet];
try{
console.log( worksheet["A1"].v); //안의 데이터는 .v 를 사용해야 함
}
catch(exception){ //셀에 데이터가 없으면 exception이 남
console.log("nono")
}
console.log(worksheet["!ref"]) // 사용한 셀의 길이
'코딩 > node.js' 카테고리의 다른 글
구글 소셜로그인 (0) | 2018.09.15 |
---|---|
페이스북 소셜로그인 (0) | 2018.09.15 |
카카오 소셜로그인 앱서버 (0) | 2018.09.15 |