본문 바로가기

Hello World...

검색하기
Hello World...
프로필사진 FaustK

  • 분류 전체보기 (91)
    • flutter (5)
    • javascript (15)
    • typescript (3)
    • node.js (8)
    • vue.js (8)
    • react.js (8)
    • nest.js (4)
    • aws (2)
    • git (2)
    • algorithm (2)
    • programming (8)
    • ChatGPT (6)
Guestbook
Notice
«   2025/08   »
일 월 화 수 목 금 토
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
  • #cloudfront #s3 #html 확장자 없애기
  • OOP
  • 클로저
  • jest
  • url #querystring
  • lightsail nodejs apache
  • this
  • NPM
  • git pair
  • TypeScript
  • 기후변화
  • 객체참조 #객체
  • ESLint
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록url #querystring (1)

Hello World...

nodejs url, querystring module 예제

예제1) const url = require('url'); const qs = require('querystring'); // WAHTWG parse 방법 const myurl = new url.URL('https://www.naver.com:9000/user?name=mina#hash'); console.log(myurl); // 기존 url parse 방법 const parsedUrl = url.parse( 'https://www.naver.com:9000/user?name=mina&name=sherlock#hash' ); console.log(parsedUrl); const query = qs.parse(parsedUrl.query); console.log(query); const { name } ..

node.js 2020. 1. 16. 23:53
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바