{"id":20925220,"url":"https://github.com/antonharbers/hashmap-demo","last_synced_at":"2026-05-15T22:38:46.292Z","repository":{"id":216828992,"uuid":"742387738","full_name":"AntonHarbers/hashmap-demo","owner":"AntonHarbers","description":"Hashmap Demo - The Odin Project: https://www.theodinproject.com/lessons/javascript-hashmap","archived":false,"fork":false,"pushed_at":"2024-01-13T15:15:24.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T00:29:56.503Z","etag":null,"topics":["hashmaps","javascript","linkedlist","node","theodinproject"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntonHarbers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T11:10:53.000Z","updated_at":"2024-01-13T23:27:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a86203c4-19fb-4ae3-afbc-1a43162b3cb6","html_url":"https://github.com/AntonHarbers/hashmap-demo","commit_stats":null,"previous_names":["antonharbers/hashmap-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntonHarbers/hashmap-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonHarbers%2Fhashmap-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonHarbers%2Fhashmap-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonHarbers%2Fhashmap-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonHarbers%2Fhashmap-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntonHarbers","download_url":"https://codeload.github.com/AntonHarbers/hashmap-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntonHarbers%2Fhashmap-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hashmaps","javascript","linkedlist","node","theodinproject"],"created_at":"2024-11-18T20:29:51.135Z","updated_at":"2026-05-15T22:38:46.279Z","avatar_url":"https://github.com/AntonHarbers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hashmap Demo - The Odin Project 🚀\n\nWelcome to the **Hashmap Demo**, a super cool JavaScript implementation of a hashmap created for [The Odin Project](https://www.theodinproject.com/). This is a showcase of data structures done right, built from the ground up with skill and a dash of coding finesse!\n\n## What's Inside? 🧐\n\nGet ready to explore a custom-built hashmap that efficiently handles key functionalities like setting, getting, and removing key-value pairs, with collision handling done right.\n\n### Features\n\n- **Custom Hash Function**: Crafted for fair distribution of key-value pairs.\n- **Collision Handling with Linked Lists**: Smartly handles data collisions.\n- **Dynamic Resizing**: Scales beautifully as your data grows.\n- **Iterator Functionality**: Traverse keys, values, and entries with ease.\n- **Essential Operations**: Set, get, remove, and check keys in a flash!\n\n## Getting Started 🚀\n\nReady to dive in? Here's how to get this hashmap up and running on your local machine:\n\n### Prerequisites\n\nEnsure you have [Node.js](https://nodejs.org/en/) installed to run this project.\n\n### Installation\n\n1. **Clone the Repository**:\n\n   ```bash\n   git clone https://github.com/AntonHarbers/hashmap-demo\n   cd hashmap-demo\n   ```\n\n2. **Run the Demo**:\n   ```bash\n   node script.js\n   ```\n\nAnd that's it! You're now experiencing the power of this custom hashmap. Feel free to tweak the script, hashmap or linked list for your custom usage\n\n## Usage 🛠️\n\nHere's how to use the hashmap:\n\n### Creating a HashMap\n\n```javascript\nconst { HashMap } = require('./HashMap');\nconst myMap = new HashMap(20); // Initialize with desired capacity\n```\n\n### Adding Elements\n\n```javascript\nmyMap.set('key1', 'value1');\nmyMap.set('key2', 'value2');\n```\n\n### Retrieving Elements\n\n```javascript\nconst value = myMap.get('key1'); // returns 'value1'\n```\n\n### Checking Existence\n\n```javascript\nif (myMap.has('key1')) {\n  console.log('Key1 exists!');\n}\n```\n\n### Removing Elements\n\n```javascript\nmyMap.remove('key1'); // Key1 is now gone!\n```\n\n### Iterating\n\n```javascript\nfor (const keyValue of myMap.entries()) {\n  console.log(keyValue); // Logs each key-value pair\n}\n```\n\n## Documentation 📚\n\nThe HashMap class includes these methods:\n\n- `set(key, value)`: Add or update a key-value pair.\n- `get(key)`: Retrieve the value for a given key.\n- `has(key)`: Check if a key is in the hashmap.\n- `remove(key)`: Remove a key-value pair.\n- `length()`: Get the number of pairs in the hashmap.\n- `keys()`: List all keys.\n- `values()`: List all values.\n- `entries()`: List all key-value pairs.\n- `clear()`: Clear the hashmap.\n\n## Contributions 🤝\n\nWhile contributions are currently not welcome as this is a personal portfolio project, feel free to clone or fork it for your own experiments!\n\n## License 📝\n\nThis project is released under the [MIT License](LICENSE).\n\n## Acknowledgments 🙏\n\n- A big thank you to [The Odin Project](https://www.theodinproject.com/) for the inspiration behind this build.\n- Cheers to the JavaScript community for making learning and coding a fun journey.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonharbers%2Fhashmap-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonharbers%2Fhashmap-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonharbers%2Fhashmap-demo/lists"}