Skip to content

Instantly share code, notes, and snippets.

@buroz
Last active August 29, 2020 13:12
Show Gist options
  • Save buroz/99d1cf8d6b445d786e841e9d4aff4f9a to your computer and use it in GitHub Desktop.
Save buroz/99d1cf8d6b445d786e841e9d4aff4f9a to your computer and use it in GitHub Desktop.
Vizyonsuz türk e-ticaret domain'i yaratma scripti
const names = [
"cumhuriyeti",
"cehennemi",
"selalesi",
"evi",
"magazasi",
"shop",
"kasa",
"dunyasi",
"cenneti",
"yeri",
"mekani",
"sepeti",
"indirim",
"kasasi",
"kafasi",
"selalesi"
];
const readline = require("readline").createInterface({
input: process.stdin,
output: process.stdout,
});
readline.question("Lütfen bir isim giriniz.\n", (name) => {
let i = Math.floor(Math.random() * names.length);
console.log(`${name + names[i]}.com`);
readline.close();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment