-
최근 글
분류
- Javascript (13)
- jQuery (16)
- node.js (30)
최근 답글
Tag Archives: node
node.js의 connect 이해하기
express로 프로그래밍하다 보면, connect라는 라이브러리가 범상치 않은 놈임을 눈치챌 수 있다. 이녀석을 잘 설명한 문서를 찾다 아래 문서를 발견했다. rough하게 발번역하고, 요약해보았다. <참고> http://howtonode.org/connect-it connect는 node를 가능한 작게 추상화하고 리패키징한 것. 그 결과 API는 상당히 node-specific하고, 견고함. 그리고 connect는 unique한 … Continue reading
node에서 모듈 로드하기
node.js 프로그래밍을 하다보면 모듈을 로딩하는 메커니즘이 궁금할 때가 있다. 이를 이해하기 위해 nodejs 문서를 번역했다. 원본글 : http://nodejs.org/docs/v0.4.8/api/modules.html#modules Modules node는 간단한 모듈 로딩 시스템을 가진다. node에서 파일과 모듈이 1대1로 대응된다. 예를들어, foo.js가 같은 디렉토리의 circle.js를 로딩한다고 하면, [ foo.js ] … Continue reading
npm 1.0 간단정리
1. npm 설치하기 curl http://npmjs.org/install.sh | sh 2. npm을 이용한 패키지 설치 (1) global 설치 # npm install -g xxx [예제] # npm install -g express /usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express mime@1.2.2 /usr/local/lib/node_modules/express/node_modules/mime qs@0.1.0 /usr/local/lib/node_modules/express/node_modules/qs connect@1.4.1 /usr/local/lib/node_modules/express/node_modules/connect express@2.3.4 /usr/local/lib/node_modules/express # 보는 바와 … Continue reading
