{"version":3,"sources":["jsdelivr-header.js","/npm/gitrr@1.0.0/cli.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACLA,MAAM,SAAW,QAAQ,YACnB,MAAQ,QAAQ,SAEhB,UAAY,SAAS,gBAAgB,CACvC,MAAO,QAAQ,MACf,OAAO,QAAQ,SAGnB,UAAU,SAAS,wBAAyB,IACxC,IAAI,EAAM,gCAAgC,IAS1C,MAAM,IAAI,EAPM,CACZ,QAAS,CACL,aAAc,cACd,eAAgB,sBAIC,IACrB,QAAQ,IAAI,UAAW,EAAI,YAEN,KAAlB,EAAI,WACH,QAAQ,IAAI,WAEZ,QAAQ,IAAI,EAAK,WAGrB,IAAI,EAAU,GAEd,EAAI,GAAG,QAAS,IACZ,GAAW,CAAI,IAGnB,EAAI,GAAG,OAAO,KACV,IAAI,EAAM,KAAK,MAAM,GACrB,QAAQ,IAAI,SAAS,EAAI,QACzB,QAAQ,IAAI,cAAc,EAAI,aAC9B,QAAQ,IAAI,iBAAiB,EAAI,gBACjC,QAAQ,IAAI,cAAc,EAAI,aAG9B,UAAU,OAAO,GACpB,GAET","file":"/npm/gitrr@1.0.0/cli.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gitrr@1.0.0/cli.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\nconst readline = require('readline');\nconst https = require('https')\n\nconst userInput = readline.createInterface({\n    input: process.stdin,\n    output:process.stdout\n})\n\nuserInput.question('whats your username?', (ans) => {\n    let url = `https://api.github.com/users/${ans}`;\n\n    const options = {\n        headers: {\n            'User-Agent': 'Github-info',\n            'Content-Type': 'application/json'\n        }\n    };\n\n    https.get(url, options, (res) => {\n        console.log('check 2', res.statusCode)\n\n        if(res.statusCode == 200) {\n            console.log('check 4')\n        } else {\n            console.log(res, 'check 5')\n        }\n\n        let rawData = \"\";\n\n        res.on('data', (data) => {\n            rawData += data;    \n        });\n\n        res.on('end', () => {\n            let one = JSON.parse(rawData);\n            console.log(`name: ${one.name}`);\n            console.log(`Followers: ${one.followers}`);\n            console.log(`Public-repos: ${one.public_repos}`)\n            console.log(`Following: ${one.following}`);\n            \n            \n            userInput.close();\n        })\n    }\n)\n})\n\n"]}