## DoubleLinkedList [![npm version](https://img.shields.io/npm/v/@ffflorian/doublelinkedlist.svg?style=flat)](https://www.npmjs.com/package/@ffflorian/doublelinkedlist) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ffflorian/DoubleLinkedList)](https://dependabot.com)

A linked list in which every element knows about its predecessor and its successor.

```
 ______     ______     ______
| |  | |   | |  | |   | |  | |
| |  | <---> |  | <---> |  | |
|_|__|_|   |_|__|_|   |_|__|_|
  prev        n         next
```

### Usage

```ts
import {LinkedList} from '@ffflorian/doublelinkedlist';

const list = new LinkedList();
list.add('one');
list.add('two');
list.add('three');
list.get(0); // 'one'
```

### Testing

First, install the npm packages for testing:

```
yarn
```

Now run the tests:

```
yarn test
```

## DoubleLinkedList [![Build Status](https://action-badges.now.sh/ffflorian/DoubleLinkedList)](https://github.com/ffflorian/DoubleLinkedList/actions/) [![npm version](https://img.shields.io/npm/v/@ffflorian/doublelinkedlist.svg?style=flat)](https://www.npmjs.com/package/@ffflorian/doublelinkedlist) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ffflorian/DoubleLinkedList)](https://dependabot.com)

A linked list in which every element knows about its predecessor and its successor.

```
 ______     ______     ______
| |  | |   | |  | |   | |  | |
| |  | <---> |  | <---> |  | |
|_|__|_|   |_|__|_|   |_|__|_|
  prev        n         next
```

### Usage

```ts
import {LinkedList} from '@ffflorian/doublelinkedlist';

const list = new LinkedList();
list.add('one');
list.add('two');
list.add('three');
list.get(0); // 'one'
```

### Testing

First, install the npm packages for testing:

```
yarn
```

Now run the tests:

```
yarn test
```

Add actions badge to readme
docs: Add actions badge to readme