2.0.7 • Published 5 years ago

bytespin v2.0.7

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
5 years ago

bytespin

npm version npm

spinner nanocomponent that cycles through a given list of characters ( demo )

npm.io

installation

npm install --save bytespin

usage

spinner = Spinner(opts) creates a new Spinner instance.

{
  chars: string  // characters to cycle through
  speed: number // spinning speed in ms
}

example

var Spinner = require('bytespin')
var spinner = Spinner({ chars: '\\|/-', speed: 125 })

function view (state, emit) {
  return `
    <div>
      ${spinner.render(state.fetching)}
    </div>`
}
2.0.7

5 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago