Debian Codegraph @

cli-color/test/__playground/throbber.formatted.js

raw
1 #!/usr/bin/env node
2
3 "use strict";
4
5 var setupThrobber = require("../../throbber")
6 , format = require("../../index").red
7 , throbber = setupThrobber(process.stdout.write.bind(process.stdout), 200, format);
8
9 process.stdout.write("START");
10 throbber.start();
11 setTimeout(throbber.stop, 1100);