@maze.st/cycler

2.0.0 • Public • Published

CYCLER

About

Allow you to cycle thru all items in the given array.

Install

To install cycler, simply run the following command:

$ npm i @maze.st/cycler

Usage

const Cycler = require('@maze.st/cycler');

var items = new Cycler(['foo', 'bar', 'unicorn']);

items.count();
items.curr();
items.prev();
items.next();

Readme

Keywords

none

Package Sidebar

Install

npm i @maze.st/cycler

Homepage

maze.st

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • yaneony