# js-doubly-linked-list

> Javascript Implementation of Doubly Linked List

Latest version **1.0.1** (published 2019-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-doubly-linked-list
pnpm add js-doubly-linked-list
yarn add js-doubly-linked-list
bun add js-doubly-linked-list
```

## 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 | 1.0.1 |
| Published | 2019-10-16 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kumar Gaurav Mishra |
| Maintainers | kumar_gaurav_mishra |
| Keywords | Javascript, DataStructure, DoublyLinkedList, list, js-doubly-linked-list |

## Links

- npm: https://www.npmjs.com/package/js-doubly-linked-list
- Repository: https://github.com/kumar-gaurav-mishra/DoublyLinkedList
- Homepage: https://github.com/kumar-gaurav-mishra/DoublyLinkedList#readme
- Issues: https://github.com/kumar-gaurav-mishra/DoublyLinkedList/issues
- npm.io page: https://npm.io/package/js-doubly-linked-list

## Recent versions

- 1.0.1 (latest) — 2019-10-16
- 1.0.0 — 2019-10-16

## README

# Doubly-Linked-List

Javascript Implementation of Doubly Linked List

### Installation & Usage :

```Installation

npm install js-doubly-linked-list

```

```Javascript

 const DoublyLinkedList = require('js-doubly-linked-list');
 let list = new DoublyLinkedList();

 list.push(1); //Pushes value to the list
 list.pop(); // Delete value from the end of the list
 list.shift(); // Delete value from the start of the list
 list.unshift(1); // Adds value at the start of the list
 list.get(1); // Retrives value at the given index
 list.reverse(); // Reverses the list
 list.insert(1, 20); // list.insert(index, value) -> Inserts value at the given index
 list.set(1, 12); // list.set(index, value) ->  Replaces or set's value at the given index
 list.length; // Gives you length of the list
 list.head; // Gives you head of the list
 list.tail; // Gives you tail of the list
```

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