Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const [exePath, scriptPath, lines, repeats, usageNewline] = process.argv;
- const log = Array
- .apply(null, Array(parseInt(lines)))
- .map((v, i) => i)
- .join(usageNewline === '1' ? '\n' : '.') + '\n';
- const main = () => {
- setTimeout(main, 0);
- for(let i = 0; i < repeats; i++) {
- process.stdout.write(log);
- }
- }
- setImmediate(main);
Add Comment
Please, Sign In to add comment