Wondering what’s next for npm?Check out our public roadmap! »

    elegant-spinner
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    elegant-spinner Build Status

    Elegant spinner for interactive CLI apps

    You probably want ora instead, which includes this spinner and handles the animation for you.

    Install

    $ npm install elegant-spinner
    

    Usage

    const elegantSpinner = require('elegant-spinner');
    const logUpdate = require('log-update');
     
    const frame = elegantSpinner();
     
    setInterval(() => {
        logUpdate(frame());
    }, 50);

    Relevant

    • log-update - Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.

    License

    MIT © Sindre Sorhus

    Install

    npm i elegant-spinner

    DownloadsWeekly Downloads

    3,440,394

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.49 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar