[JS] Library | 02. Papaparse

2024. 12. 10. 01:34·Language/JavaScript
728x90

https://www.papaparse.com/

 

Papa Parse - Powerful CSV Parser for JavaScript

EpiML is an agent-based mathematical model for the web, still in its early stages of development. "Papa makes it so easy to use CSV, which is good for scientists."

www.papaparse.com

Papaparse는 JS 환경에서 csv 파일을 읽고 파싱할 수 있게 해주는 패키지입니다.

 

Response로 응답받은 csv파일을 csvText라고 할 때, papaparse의 사용법은 아래와 같습니다.

Data() signal에는 각 속성에 대한 값이 저장됩니다.

Papa.parse(csvText, {
  header: true,
  skipEmptyLines: true,
  complete: (results) => {
    setData(results.data); // setData : existing signal
  },
});
728x90

'Language > JavaScript' 카테고리의 다른 글

[JS] Syntax | 10. 병합연산자(??)  (0) 2025.03.23
[JS] CommonJS & ES에 대해서  (0) 2025.03.21
[JS] Library | 01. Superstruct  (0) 2024.08.25
[JS] Syntax | 09. Promise.all()  (0) 2024.07.27
[JS] Syntax | 08. .then()  (0) 2024.07.27
'Language/JavaScript' 카테고리의 다른 글
  • [JS] Syntax | 10. 병합연산자(??)
  • [JS] CommonJS & ES에 대해서
  • [JS] Library | 01. Superstruct
  • [JS] Syntax | 09. Promise.all()
Rayi
Rayi
  • Rayi
    아카이브
    Rayi
  • 전체
    오늘
    어제
    • 분류 전체보기 (298)
      • CS (40)
        • CV (2)
        • PS (37)
      • Reveiw (19)
        • Paper (19)
        • Github (0)
      • ML (13)
        • Pytorch (5)
      • Language (72)
        • Python (21)
        • JavaScript (32)
        • TypeScript (16)
        • C++ (3)
      • IDE (13)
      • Git (13)
      • Frontend (77)
        • React (8)
        • ReactNative (6)
        • SolidJS (20)
        • CSS (12)
      • Backend (47)
        • DB (18)
        • Node.js (11)
        • Python (3)
      • UI (3)
      • Automation (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    PyTorch
    react
    review
    js
    vscode
    GAN
    DB
    ReactNative
    CSS
    mongo
    FastAPI
    ps
    nodejs
    CV
    PRISMA
    SOLID
    CS
    postgresql
    deploy
    ts
    backend
    Express
    Three
    ML
    API
    Git
    python
    figma
    frontend
    modal
  • 최근 댓글

  • 최근 글

  • 250x250
  • hELLO· Designed By정상우.v4.10.5
Rayi
[JS] Library | 02. Papaparse
상단으로

티스토리툴바