ts-structures
TypeScript icon, indicating that this package has built-in type declarations

0.5.7 • Public • Published

TypeScript Datastructures

Build Status Codacy codecov NPM version NPM downloads

Implementation of common data structures, TypeScript pendant of my go-datastructures repo. (As a huge Go enthusiast, I must admit that working with a language that support Generics is quite a relief for this kind of work)

About

The package provides ready-to-use and functionnal data structures. It includes linked lists, queues, stack, binary heaps and I intent to implement a lot more.

This project is also a pretext for the student developer I am to learn and practice many aspects of the development process:

  • :dna:  Understanding data structures
  • 🚦  Keeping clean code and good coding practices
  • ✅  Making relevant tests with high coverage rate
  • 🔄  Using Continuous Integration tools
  • 📘  Maintaining a fully documented codebase

Feedback of any kind is always appreciated!

Usage

npm i ts-structures
const { BinarySearchTree } = require('ts-structures')
 
const tree = new BinarySearchTree()
// ...

Documentation

👉 TypeDoc

Implemented

Todo

  • Graph implementation
    • Refacto in progress
    • MatrixGraph
  • More data structures

Package Sidebar

Install

npm i ts-structures

Weekly Downloads

1

Version

0.5.7

License

MIT

Unpacked Size

99 kB

Total Files

38

Last publish

Collaborators

  • gregoryalbouy