🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
15
node_modules/cli-spinners/index.js
generated
vendored
Normal file
15
node_modules/cli-spinners/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
const spinners = Object.assign({}, require('./spinners.json')); // eslint-disable-line import/extensions
|
||||
|
||||
const spinnersList = Object.keys(spinners);
|
||||
|
||||
Object.defineProperty(spinners, 'random', {
|
||||
get() {
|
||||
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
||||
const spinnerName = spinnersList[randomIndex];
|
||||
return spinners[spinnerName];
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = spinners;
|
||||
Loading…
Add table
Add a link
Reference in a new issue