Show Menu
Cheatography

nodejs Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Node modules

require
a function that you pass a path to
module.ex­ports
what require function returns
 

Pattern Modifiers (cont)

exports
module.ex­por­ts.l­ogger = logger
 

Built - in modules (mostly used)

path
to handle fie paths
os
to provide info about operating system
fs
to handle file
http
to make node act as http server