braille-loaders
v1.0.7
Published
Animated fully customizable loading icons from a collection of 64 spinner types.
Downloads
3
Maintainers
Readme
braille-loaders
Elegant colorful 60+ spinners inspired by cli-spinners
Install
npm install braille-loaders --save
Usage
const brailleLoader = require('baraille-loaders');
var loader = new brailleLoader({
spinner: 'clock',
color: 'green'
})
loader.start(); // starting loader
loader.stop(); // stopping loader
loader.setText('Loading pages'); // updating text of loader
API
constructor ([options|text])
Incase if a string is provided default dots spinner will be used.
options
Type: Object
text
Type: string
Text that will be displayed with spinner
spinner
Type: string
Default: dots
Note: For list of spinners see cli-spinners spinner.json
color
Type: string
Default: white
options: black
red
green
yellow
cyan
blue
purple
Example
var brailleloader = require('braille-loader');
var loader = new brailleloader({
spinner: 'clock',
color: 'green',
text: 'loading'
})
loader.start();
Output
Related
cli-spinners
License
MIT © Kailash K Yogeshwar
Happy Coding.