joesds

NPM package containing Javascript data structures

Usage no npm install needed!

<script type="module">
  import joesds from 'https://cdn.skypack.dev/joesds';
</script>

README

Joe's Data Structures

A simple, light-weight package offering some standard, feature-complete data structures.

Contains:

  1. Stack
  2. Queue
  3. LinkedList

Coming Soon

  1. Binary Search Tree
  2. Doubly Linked List
  3. Set
  4. Graph

To use:

  1. Add the package to your repo:
npm i joesds
  1. Import the package and instantiate the data structure you want to use:
import joesds from 'joesds'
import { LinkedList } from 'joesds'

const bookStack = new joesds.Stack()
bookStack.push({
    title: 'Cant Hurt Me',
    author: 'David Goggins',
})

const bookBorrowers = new LinkedList()
bookstack[0].borrowHistory = bookBorrowers