# clist

> Circular list structure

Latest version **0.1.0** (published 2014-04-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-04-28 |
| First published | 2014-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Raymond Julin |
| Maintainers | nervetattoo |

## Links

- npm: https://www.npmjs.com/package/clist
- npm.io page: https://npm.io/package/clist

## Recent versions

- 0.1.0 (latest) — 2014-04-28

## README

# A minimal Circular Linked List in javascript

[![Build Status](https://travis-ci.org/nervetattoo/CircularList.js.svg?branch=master)](https://travis-ci.org/nervetattoo/CircularList.js)

This **only** aims at solving iterating the list, in order to handle transformations use native array methods and reset the data structure.

```js
var CircularList = require('CircularList');

var list = new CircularList([1, 2, 3, 4]);

list.next() // 1
list.next() // 2
list.prev() // 1
list.last() // 4

// Modify list by resetting

list.reset(list.toArray().slice(1)); // [1, 2, 3]
```

## Install

* `bower install CircularList`
* `npm install CircularList`

## Supported environments:

* node: `var CircularList = require('CircularList');`
* browser:
    * AMD: `define(['CircularList'], function(CircularList) {});`
    * Global: `window.CircularList`

## Run tests

`npm install; npm test`

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