123456789101112131415 |
- '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;
|