blackbearwow

  • 홈
  • 태그
  • 방명록

nodejs 2

nodejs의 file system (node:fs)

node:fs 모듈은 표준 POSIX 함수 기반으로 파일 시스템과 상호작용을 가능하게 한다. API는 크게 3가지로 나뉘어진다. Promises API, Callback API, Synchronous API. promise기반 api를 사용할 때: import * as fs from 'node:fs/promises'; callback 이나 sync api를 사용할 때: import * as fs from 'node:fs'; Promise 예제 promise기반 작업은 비동기 작업이 완료되었을 때 promise가 반환된다. import { unlink } from 'node:fs/promises'; try { await unlink('/tmp/hello'); console.log('successfully ..

Node.js 2023.07.29

nodejs에서 mysql 사용하기(mysql, mysql2 모듈)

1. mysql 모듈 (현재 권장되지 않음)생활코딩 강의 참조: https://www.youtube.com/watch?v=udJjxv3IA4k nodejs에서 mysql을 연동하고 싶다면 어떻게 해야 할까?기본 모듈중에는 mysql을 연동할 수 있는 모듈이 없다.하지만 누군가가 만들어 놓은 좋은 모듈이 있다! 사이트: https://www.npmjs.com/package/mysqlnpm install mysql위 명령어를 이용해 설치하자.let mysql = require('mysql');let connection = mysql.createConnection({ host : 'localhost', port : 3306, user : 'root', password : ..

Node.js 2023.02.20
이전
1
다음
더보기
프로필사진

blackbearwow

  • 분류 전체보기 (229)
    • AHK(오토핫키) (9)
    • c, cpp (6)
    • Java (26)
      • jdbc (7)
    • python (10)
      • Flask (4)
    • Node.js (24)
    • 코딩 연습 (14)
      • 프로그래머스 (10)
      • 백준 (4)
    • web (19)
      • css (2)
      • javascript (10)
    • 컴퓨터 네트워크 (6)
    • 자료구조 (14)
    • 운영체제 (15)
      • Linux (13)
      • Windows (1)
    • 데이터베이스 (Database) (3)
    • 컴퓨터 그래픽스 (3)
    • 시스템 분석 설계 (2)
    • 소켓프로그래밍 (9)
    • 이것저것 (9)
    • 게임 (4)
    • Unity (6)
      • VRChat (6)
    • web hacking (8)
      • dreamhack(드림핵) (8)
    • system hacking (30)
      • dreamhack(드림핵) (23)
      • 개념, 준비물 (7)
    • reversing (reverse engineer.. (5)
      • dreamhack (드림핵) (5)

Tag

Unity, Nintendo, c언어, struct bit field, Set, lockstep, nodejs, heap tree, TCP header format, socket.io, VRCHAT, 자료구조, JavaScript, VRChat Creator Companion, SQL, datastructures, 프로그래머스, vcc, level1, MySQL,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 깃허브 페이지
  • dreamhack 페이지

티스토리툴바