UNPKG

infotrace

Version:
31 lines (24 loc) 688 B
const open = require('open'); const os = require('os'); const pkg = require('../package.json'); const body = ` ### Describe the bug A clear and concise description of what the bug is. ### Screenshots If applicable, add screenshots to help explain your problem. ### System Information **Infoooze Version** : ${pkg.version} **Node Version** : ${process.version} **OS Type** : ${os.type()} **OS Version** : ${os.release()} **OS Plateform** : ${os.platform()} `; // console.log(body); const reportBug = () => { open( `https://github.com/devXprite/infoooze/issues/new?assignees=&labels=bug&title=&body=${encodeURIComponent( body, )}`, ); }; module.exports = reportBug;