1.2.20250302 • Published 10 months ago

@dibzthedibz/linked-list-library v1.2.20250302

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

@dibzthedibz/linked-list-library

@dibzthedibz/linked-list-library is a simple and efficient JavaScript library for working with linked lists. This library provides an easy-to-use API for common linked list operations such as inserting nodes, finding nodes, converting between arrays and linked lists, making circular lists, and checking if a list is circular.

Installation

To install this library, use npm:

npm install @dibzthedibz/linked-list-library

const LinkedList = require('@dibzthedibz/linked-list-library');

const list = new LinkedList();

list.insertAtHead(10);
list.insertAtTail(20);
list.insertInMiddle(15, 1);
const node = list.findNodeAt(1);
console.log(node);
list.arrayToList([1, 2, 3, 4, 5]);
const arr = list.listToArray();
console.log(arr);
list.makeCircular(2);
const isCircular = list.isCircular();
console.log(isCircular);


I hope this format works for you! This is my first library, and is more practice than something i expect people to need, but if it helps you, I'm glad! Let me know if you need any more adjustments.
1.2.20250302

10 months ago

1.1.20250302

10 months ago

1.0.20250302

10 months ago

1.0.0

10 months ago