https://github.com/codesvault/dsnode
Create different DataStructures using simple APIs. API available in TypeScript & JavaScript [ES6]. NodeJS compatible
https://github.com/codesvault/dsnode
datastructure datastructures es6 hacktoberfest javascript javascript-library jest npm npm-module npm-package typescript typescript-library
Last synced: about 1 month ago
JSON representation
Create different DataStructures using simple APIs. API available in TypeScript & JavaScript [ES6]. NodeJS compatible
- Host: GitHub
- URL: https://github.com/codesvault/dsnode
- Owner: CodesVault
- License: mit
- Created: 2022-02-19T18:29:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T14:52:26.000Z (about 3 years ago)
- Last Synced: 2025-03-17T21:43:01.918Z (about 1 month ago)
- Topics: datastructure, datastructures, es6, hacktoberfest, javascript, javascript-library, jest, npm, npm-module, npm-package, typescript, typescript-library
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@codes.vault/dsnode
- Size: 268 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DSNode
Create different DataStructures using simple APIs.
API available in TypeScript & JavaScript [ES6].
## Examples
```ts
// ** create a blockchain datastructure
const blockChain = BlockChain.createBlockChain()
blockChain.createBlock({key: 'usd', value: {amount: 540}})
// check is the hash chain is valid
blockChain.checkValidation()// ** create stack
const stack = Stack.createStack()
// add data in the stack
stack.push({key: 'a', value: 'apple'})
stack.push({key: 'b', value: {name: 'AbmSourav'}})
// search in the stack by key
stack.search('a');// ** create a queue
const queue = Queue.createQueue()
queue.enqueue({key: 'a', value: [1, 2, 5]})
queue.enqueue({key: 'sourav', value: {name: "Sourav"}})
// remove item
queue.dequeue()```
## List of Data Structures:
* BlockChain -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/blockChain#blockchain-api)**
* HashTable -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/hashTable#hash-table-api)**
* Doubly LinkedList -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/linkedList/doubly#doubly-linked-list-api)**
* Singly LinkedList -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/linkedList/singly#singly-linked-list-api)**
* Stack -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/stack#stack-api)**
* Queue -- **[Documentation](https://github.com/CodesVault/DSNode/tree/main/src/queue#queue-api)**
## Contribution Guidelines
**Developer [Wiki](https://github.com/CodesVault/DSNode/wiki/Contribution-guidelines)**
.