Socket
Book a DemoInstallSign in
Socket

@ffflorian/doublelinkedlist

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ffflorian/doublelinkedlist

TypeScript implementation of a double-linked list

latest
Source
npmnpm
Version
3.7.6
Version published
Maintainers
0
Created
Source

double-linked-list License: GPL v3 npm version

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

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

Prerequisites

  • Node.js >= 14
  • npm (preinstalled) or yarn

Installation

ℹ️ This is a pure ESM module.

Run yarn add @ffflorian/doublelinkedlist or npm i @ffflorian/doublelinkedlist.

Usage

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 needed packages for testing:

yarn

Now run the tests:

yarn test

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts