{"_id":"@aleloiac/linked-list","name":"@aleloiac/linked-list","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aleloiac/linked-list","version":"1.0.0","description":"A simple implementation of a singly linked list in JavaScript, built with ES6 classes","main":"./src/linked-list.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/AleLoiac/linked-list.git"},"author":{"name":"AleLoiac"},"license":"ISC","bugs":{"url":"https://github.com/AleLoiac/linked-list/issues"},"homepage":"https://github.com/AleLoiac/linked-list#readme","exports":{"./LinkedList":"./src/linked-list.js","./Node":"./src/node.js"},"publishConfig":{"access":"public"},"_id":"@aleloiac/linked-list@1.0.0","gitHead":"0cc6a6396b30042b530406156da8682ba2fd958a","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Qui0koDMbfWLlCYBv093ujgK7nWQO52uidtgD/qCtycVU9Xdz0ysbrIFcPmEFjlqfJrWl5CdBflAxGb4ky9Wow==","shasum":"88acc3225e3d5099eb3805fe360963d3d26830ad","tarball":"https://registry.npmjs.org/@aleloiac/linked-list/-/linked-list-1.0.0.tgz","fileCount":5,"unpackedSize":5780,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDjCCa/dnDICoaFyxaYxu5hS3+6yRHY2kA8D1gXZLlczwIgU6tAuejNyZ5tfrFeB/zAb90rTxUjlp/uY4jhEfAS6pg="}]},"_npmUser":{"name":"aleloiac","email":"alessandroloiac@gmail.com"},"directories":{},"maintainers":[{"name":"aleloiac","email":"alessandroloiac@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/linked-list_1.0.0_1749979364826_0.9695567425249585"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-15T09:22:44.718Z","1.0.0":"2025-06-15T09:22:45.005Z","modified":"2025-06-15T09:22:45.284Z"},"maintainers":[{"name":"aleloiac","email":"alessandroloiac@gmail.com"}],"description":"A simple implementation of a singly linked list in JavaScript, built with ES6 classes","homepage":"https://github.com/AleLoiac/linked-list#readme","repository":{"type":"git","url":"git+https://github.com/AleLoiac/linked-list.git"},"author":{"name":"AleLoiac"},"bugs":{"url":"https://github.com/AleLoiac/linked-list/issues"},"license":"ISC","readme":"# LinkedList Implementation in JavaScript\n\nThis project contains a simple implementation of a singly linked list in JavaScript, built with ES6 classes.\n\n# 📦 Files\n\n- node.js – Defines the Node class used to represent each element in the list.\n\n- LinkedList.js – Defines the LinkedList class with standard linked list operations.\n\n# 🚀 Features\n\nThe LinkedList class supports the following methods:\n\n# 🔧 Basic Methods\n\n- append(value) -\n  Adds a node with the given value to the end of the list.\n\n- prepend(value) -\n  Adds a node with the given value to the beginning of the list.\n\n- size() -\n  Returns the total number of nodes in the list.\n\n- getHead() -\n  Returns the first node in the list.\n\n- getTail() -\n  Returns the last node in the list.\n\n- toString() -\n  Returns a string representation of the list, e.g., ( 1 ) -> ( 2 ) -> null.\n\n# 🔍 Access & Search\n\n- at(index) -\n  Returns the node at the given index (0-based). Returns null if the index is out of bounds.\n\n- contains(value) -\n  Returns true if the list contains a node with the given value, otherwise false.\n\n- find(value) -\n  Returns the index of the node containing the value, or null if not found.\n\n# ✏️ Modification\n\n- pop() -\n  Removes the last element from the list.\n\n- insertAt(value, index) -\n  Inserts a new node with the given value at the specified index.\n\n- removeAt(index) -\n  Removes the node at the specified index.\n\n# 🛠️ Requirements\n\nNode.js or any environment that supports ES6 modules.\n\n# 📌 Notes\n\n- Indexes are zero-based.\n\n- The Node class must define value and nextNode properties.\n","readmeFilename":"README.md","_rev":"1-7d891a65d8701283658870477dff0544"}