16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
'use strict';
|
|
|
|
var frames = process.platform === 'win32' ?
|
|
['-', '\\', '|', '/'] :
|
|
['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
|
|
module.exports = function () {
|
|
var i = 0;
|
|
|
|
return function () {
|
|
return frames[i = ++i % frames.length];
|
|
};
|
|
};
|
|
|
|
module.exports.frames = frames;
|