Skip to content

FellipeP/cartoon-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartoon-loading

stars

var loading = require('cartoon-loading');

// To start
loading.start({
  /*
    In miliseconds
  */
  interval: 30, // Default 30
  /*
    default, black, red, green, yellow, blue, magenta, cyan, light_gray, dark_ray, light_red, light_green, light_yellow, light_blue, light_magenta, light_cyan, default_White
  */
  color: 'default',  // Default default
  bold: true,        // Default false
  underlined: false, // Default false
  /*
  Defaults names:
    newave, line, ball, fish, yoyo, song, dance, arrow, wave-01, wave-02
  */
  loading: 'newave' // Default newave :)
  // or:
  loading: [
`
frame01
`,
`
frame02
`,
 ... ]
});

// To stop
loading.stop();

Examples:

loading wave_02 loading wave_01 loading fish loading newave

License

MIT

About

loading terminal full screen iterator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published