This file contains 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
// Script pre-reqs | |
// 1. Install nodejs and npm | |
// 2. Run `npm install` | |
// 3. Set the AZURE_DEVOPS_PAT environment variable, or create a .env file and assign a value (AZURE_DEVOPS_PAT=...) | |
// TODO: Retrieve multiple pages of PRs, threads. | |
require("dotenv").config(); | |
const request = require('request-promise-native'); |
This file contains 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
// Example usage: node gunzip_http_response.js http://www.httpbin.org/gzip | |
const http = require('http'); | |
const zlib = require('zlib'); | |
const url = process.argv[2]; | |
console.log(`Requesting ${url}...`); | |
const req = http.request(url); |