{"id":22599149,"url":"https://github.com/shravzzv/odin-linked-lists-project","last_synced_at":"2025-03-28T19:43:11.857Z","repository":{"id":205948190,"uuid":"715473567","full_name":"shravzzv/ODIN-Linked-lists-project","owner":"shravzzv","description":"A simple project that implements a linked list in JS.","archived":false,"fork":false,"pushed_at":"2023-11-08T03:25:02.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T22:59:04.437Z","etag":null,"topics":["linkedlists","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/shravzzv.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-07T08:07:09.000Z","updated_at":"2024-06-21T10:21:23.000Z","dependencies_parsed_at":"2023-11-07T09:27:29.421Z","dependency_job_id":"892a916b-9647-4fc5-86d5-59599350f82c","html_url":"https://github.com/shravzzv/ODIN-Linked-lists-project","commit_stats":null,"previous_names":["shravzzv/odin-linked-lists-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravzzv%2FODIN-Linked-lists-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravzzv%2FODIN-Linked-lists-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravzzv%2FODIN-Linked-lists-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravzzv%2FODIN-Linked-lists-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shravzzv","download_url":"https://codeload.github.com/shravzzv/ODIN-Linked-lists-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246092329,"owners_count":20722384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["linkedlists","theodinproject"],"created_at":"2024-12-08T11:08:22.032Z","updated_at":"2025-03-28T19:43:06.846Z","avatar_url":"https://github.com/shravzzv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Implementing a linked list in JS\n\n## Description\n\nThis project implements a linked list in JavaScript. It provides various methods to manipulate the linked list, such as appending and prepending nodes, getting the size, retrieving the head and tail nodes, accessing nodes at specific indices, checking if a value exists, finding the index of a value, converting the linked list to a string, inserting nodes at specific indices, and removing nodes at specific indices.\n\nThis project was a part of The Odin Project. Check the [Project Source](https://www.theodinproject.com/lessons/javascript-linked-lists).\n\n## Features\n\nThe [LinkedList](src/LinkedList.js) has the following methods:\n\n- `append(value)`: Adds a new node to the end of the list.\n- `prepend(value)`: Adds a new node to the start of the list.\n- `getSize()`: Returns the total number of nodes in the list.\n- `getHead()`: Returns the first node in the list.\n- `getTail()`: Returns the last node in the list.\n- `at(index)`: Returns the node at the given index.\n- `pop()`: Removes the last element from the list.\n- `contains(value)`: Returns true if the value is in the list, otherwise returns false.\n- `findIndexOf(value)`: Returns the index of the node containing the specific value, or null if not found.\n- `toString()`: Represents the linked list as a string, displaying the nodes' values.\n- `insertAt(value, index)`: Inserts a new node with the provided value at the given index.\n- `removeAt(index)`: Removes the node at the given index.\n\n## Technologies Used\n\n![JavaScript](https://skillicons.dev/icons?i=js)\n![Git](https://skillicons.dev/icons?i=git)\n![Webpack](https://skillicons.dev/icons?i=webpack)\n![Jest](https://skillicons.dev/icons?i=jest)\n![Babel](https://skillicons.dev/icons?i=babel)\n\n## Installation\n\nTo install the project, follow these steps:\n\n```bash\ngit clone https://github.com/shravzzv/ODIN-Linked-lists-project\ncd ODIN-Linked-lists-project\nnpm install\n```\n\n## Usage\n\n```bash\nnpm run watch\nnpm run dev\n```\n\n## How to Contribute\n\nIf you'd like to contribute, follow these steps:\n\n1. Fork the repository on GitHub.\n2. Clone your fork locally.\n\n   ```bash\n   git clone https://github.com/shravzzv/ODIN-Linked-lists-project\n   cd ODIN-Linked-lists-project\n   ```\n\n3. Create a new branch for your feature or bug fix.\n\n   ```bash\n   git checkout -b feature-or-bug-fix-name\n   ```\n\n4. Make your changes, commit them, and push them to your fork.\n\n   ```bash\n   git add .\n   git commit -m \"Your commit message here\"\n   git push origin feature-or-bug-fix-name\n   ```\n\n5. Open a Pull Request on GitHub, comparing your branch to the original repository's `main` branch.\n\n## Issue Tracker\n\nFind a bug or want to request a new feature? Please let us know by submitting an issue.\n\n- [Issue Tracker](https://github.com/shravzzv/ODIN-Linked-lists-project/issues)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravzzv%2Fodin-linked-lists-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshravzzv%2Fodin-linked-lists-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravzzv%2Fodin-linked-lists-project/lists"}