NodeJS PPT
NodeJS PPT
JS Module 4
INTRODUCTION:
• Node.js is an open-source server environment.
• Node.js allows you to run JavaScript on the server.
TO RUN:
TERMINAL : node [filename]
BROWSER : http://127.0.0.1:8080/
FIRST APP EXPLANATION:
The Built-in HTTP Module
fs.appendFile()
fs.open()
fs.writeFile()
Refer :
https://www.tutorialspoint.com/nodejs/nodejs_ne
t_module.htm
NODEJS BUFFERS:
The buffers module provides a way of handling
streams of binary data.
Syntax:
The syntax for creating an empty Buffer of the
length 15:
var buf = Buffer.alloc(15);