UNPKG

penaplast3104-sms-bomber

Version:

Simple sms bomber

23 lines (20 loc) 650 B
const { startBombing } = require('./index') const allArguments = process.argv.filter((argument,index)=> index !== 0) // without path const params = [] const flags = [] allArguments.forEach((argument)=> { if(argument.includes('--')){ flags.push(argument) } else { params.push(argument) } }) const phoneNumber = process.argv[2] const times = process.argv[3] /** * Start file. for start <node start.js 79999999999 10> * @param {string} phoneNumber - Target phone number. * @param {string} times - Number of calls. * @param {Array} options - Options flags. */ void startBombing({ phoneNumber, times, options: flags })