Skip to content

Instantly share code, notes, and snippets.

const fetch = require('node-fetch'),
fs = require('fs');
function* randomString(length) {
const chars =
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
l = chars.length;
while (true) {
let result = '';
for (let i = length; i > 0; --i)