# bytespin

> spinner nanocomponent that cycles through a given list of characters

Latest version **2.0.7** (published 2019-10-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bytespin
pnpm add bytespin
yarn add bytespin
bun add bytespin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2019-10-09 |
| First published | 2018-01-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 52.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | kareniel |
| Maintainers | kareniel |
| Keywords | nanocomponent, spinner |

## Links

- npm: https://www.npmjs.com/package/bytespin
- Repository: https://github.com/kareniel/bytespin
- Homepage: https://github.com/kareniel/bytespin#readme
- Issues: https://github.com/kareniel/bytespin/issues
- npm.io page: https://npm.io/package/bytespin

## Dependencies (2)

- [bel](https://npm.io/package/bel.md) ^5.1.7
- [nanocomponent](https://npm.io/package/nanocomponent.md) ^6.5.2

## Recent versions

- 2.0.7 (latest) — 2019-10-09
- 2.0.6 — 2018-01-18
- 2.0.5 — 2018-01-18
- 2.0.4 — 2018-01-18
- 2.0.3 — 2018-01-18
- 2.0.2 — 2018-01-18
- 2.0.1 — 2018-01-18
- 2.0.0 — 2018-01-18
- 1.0.0 — 2018-01-18

## README

# bytespin

[![npm version](https://badge.fury.io/js/bytespin.svg)](https://www.npmjs.com/package/bytespin)
[![npm](https://img.shields.io/npm/dw/bytespin.svg)](https://www.npmjs.com/package/bytespin)

spinner nanocomponent that cycles through a given list of characters ( [**demo**](https://bytespin.netlify.com) )

![](spinners.gif)


## installation

`npm install --save bytespin`


## usage 

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

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

## example

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

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

---
_Source: https://npm.io/package/bytespin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
