Skip to content

Instantly share code, notes, and snippets.

View minhtuanchannhan's full-sized avatar

Tuan Le Minh minhtuanchannhan

View GitHub Profile
@minhtuanchannhan
minhtuanchannhan / nodejs_cheatsheet.js
Created September 22, 2021 08:03
NodeJS cheatsheet
/**
* @name SYNOPSIS
* @link http://nodejs.org/api/synopsis.html
*/
var http = require('http');
// An example of a web server written with Node which responds with 'Hello World'.
// To run the server, put the code into a file called example.js and execute it with the node program.
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});

Keybase proof

I hereby claim:

To claim this, I am signing this object: