mirror of
https://github.com/danbulant/bpm
synced 2026-05-19 04:08:47 +00:00
10 lines
298 B
JavaScript
10 lines
298 B
JavaScript
const got = require("got");
|
|
const chalk = require("chalk");
|
|
|
|
console.log("Trying to make request...");
|
|
got("http://google.com").then((r) => {
|
|
console.log(chalk.blue("Got request working!"));
|
|
|
|
console.error(chalk.red("Exiting with code 1 to test error cases"));
|
|
process.exit(1);
|
|
});
|