Targets to be a hlighly powerful, low dependency set of datastructures written in TypeScript
(The name is such because finding a repo name that doesn't exist already is tougher than it looks)
- yard-ts - Yet Another Repository of Datastructures - Ts
- Table Of Contents
- Install
- Usage
- Status
- Contributing
- Testing
- License
npm i yard-ts
npm i yashshah1/yard-ts#master
- const ds = require('yard-ts');
+ const ds = require('yard-ts').default;
import ds from 'yard-ts';
<script src="https://cdn.jsdelivr.net/gh/yashshah1/yard-ts/dist/bundle.min.js">
- Linked List
- Singly Linked List - done
- Doubly Linked List - done
- Stack
- Array Stack - done
- Linked List Stack - done
- Queue
- Array Queue - done
- Linked List Queue - done
- Binary Trees
- Binary Search Tree - done
- AVL Tree - done (tests pending)
- Trie - done (tests pending)
- Graph - in progress
- Heap - done (tests in progress)
- Priority Queue - done (tests pending)
- HashTable - in progress
Feel free to fork and raise a PR with any bugfix / contribution.
See Status for things that are pending
- Folders - All lowercased, hypen (
-
) seperated - Code Files -
PascalCased.ts
- Test Files -
PascalCased.test.ts
(Must reside in__tests__
)
npm test
This should run all the tests, to run a specific test run
npm test -- -t <Keyword identifier>
As of writing, the test suite covers:
98.27%
of statements94.44%
of branches98.25%
of functions99.34%
of lines
Code is distributed under MIT License. Full license here
Thanks goes to these wonderful people (emoji key):
Naman Modi 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!