Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lisba/data_structures_javascript
Main data structures library for javascript
https://github.com/lisba/data_structures_javascript
arrays binary-search-tree data-structure graphs hash-table javascipt linkedlist maps queues stacks trees
Last synced: 15 days ago
JSON representation
Main data structures library for javascript
- Host: GitHub
- URL: https://github.com/lisba/data_structures_javascript
- Owner: Lisba
- License: mit
- Created: 2021-02-06T20:24:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T23:44:54.000Z (over 2 years ago)
- Last Synced: 2024-04-30T03:21:25.581Z (9 months ago)
- Topics: arrays, binary-search-tree, data-structure, graphs, hash-table, javascipt, linkedlist, maps, queues, stacks, trees
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@lisba/data-structures-js
- Size: 1.11 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @lisba/data-structures-js
![npm](https://img.shields.io/npm/v/@lisba/data-structures-js)
![GitHub last commit](https://img.shields.io/github/last-commit/Lisba/data_structures_javascript)
![npm](https://img.shields.io/npm/dm/@lisba/data-structures-js)
![NPM](https://img.shields.io/npm/l/@lisba/data-structures-js)#### Common data structures implementation in Javascript.
- #### [Contents](#contents)
- [Installation](#installation)
- [Usage](#usage)
- [Collaborate](#collaborate)
- [License](#license)## Installation
yarn: `yarn add @lisba/data-structures-js`
npm: `npm install @lisba/data-structures-js`
## Usage
```js
import {
Stack,
Queue,
HashTable,
MySinglyLinkedList,
MyDoublyLinkedList,
BinarySearchTree,
UndirectedGraph,
} from '@lisba/data-structures-js';const myStack = new Stack();
const myQueue = new Queue();
const myHashTable = new HashTable(50);
const mySinglyLinkedList = new MySinglyLinkedList(1);
const myDoublyLinkedList = new MyDoublyLinkedList(1);
const myTree = new BinarySearchTree();
const myGraph = new UndirectedGraph();
```## Collaborate
In order to collaborate with the proyect you need to:
1. Fork the repo.
2. Clone the repo to work locally with `git clone repo-url`.
3. Install dependencies with `yarn install`.
4. Develop suggested changes in a new branch (make sure you are using the prettier config, you can run `yarn format` or install the prettier extension if you are using vsc editor to format on save).
5. Run `yarn build` and `yarn start` to verify your changes doesn't has errors.
6. Push your changes to your repo `git push remote-repo branch-name`.
7. Make the pull request.## License
The MIT License. Full License [here](https://github.com/Lisba/data_structures_javascript/blob/master/LICENSE)