-
🔭 I’m currently working at Go Digital Consulting Technology LLP
-
🌱 I’m currently learning Terraform
-
👨💻 All of my projects are available at https://tghimanshu.github.io/
-
💬 Ask me about Anything Programming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core node modules | |
const http = require('http'); | |
const fs = require('fs'); | |
// creating a server | |
const server = http.createServer((req, res) => { | |
let url = req.url; | |
let method = req.method; | |
// for content in home page | |
if (url === '/') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const key = "AIzaSyB9e-dHIvdxxrbmorjYHWipwBKq7LJBhNk" | |
function getComments(pageToken, allItems = {}) { | |
const params = { | |
key, | |
videoId: "a4haLJdDRmc", | |
part: "snippet", | |
maxResults: 100, | |
pageToken, |