const loadtest = require('loadtest'); const options = { url: 'https://www.example.com', maxRequests: 100, secureProtocol: 'TLSv1_method'}; loadtest.loadTest(options, function(error) { if (error) { return console.error('Got an error: %s', error); } console.log('Tests run successfully');});