New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

data-structures-library

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-structures-library

An npm package to provide an easy way to use common data structures in your code.

latest
npmnpm
Version
1.5.5
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Data Structures Library

An npm package to provide an easy way to use common data structures in your code.

Currently implemented

Only Linked lists and stacks and queues are implemented right now

How to use

Install the npm package

npm i data-structures-library

Using the Linked List module

Importing the code

import {LinkedList} from "../dist/bundle.esm.js";

Creating a linked list

const linkedlist = new LinkedList()

Appending to the linked List

linkedlist.append(value)

Inserting to the linked list

linkedlist.insert(value, position)

Finding values in the linked list

linkedlist.find(value)

Convert the linked list into an easily readable string

linkedlist.stringify()

How to use Queues

For how to use queues Check out the example CLI app

FAQs

Package last updated on 25 Sep 2024

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