{"id":15313993,"url":"https://github.com/vanruesc/iterator-result","last_synced_at":"2025-10-08T23:32:11.223Z","repository":{"id":57278461,"uuid":"78669896","full_name":"vanruesc/iterator-result","owner":"vanruesc","description":"A base class for iterator results.","archived":true,"fork":false,"pushed_at":"2023-07-20T20:02:59.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T07:37:38.048Z","etag":null,"topics":["done","iterator","next","protocol","result","value"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vanruesc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-01-11T19:02:51.000Z","updated_at":"2023-07-20T20:03:14.000Z","dependencies_parsed_at":"2024-06-21T14:09:35.388Z","dependency_job_id":"b28cd95c-565d-4897-a9f0-4397b275455c","html_url":"https://github.com/vanruesc/iterator-result","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fiterator-result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fiterator-result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fiterator-result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fiterator-result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanruesc","download_url":"https://codeload.github.com/vanruesc/iterator-result/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235775518,"owners_count":19043180,"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":["done","iterator","next","protocol","result","value"],"created_at":"2024-10-01T08:43:59.954Z","updated_at":"2025-10-08T23:32:10.810Z","avatar_url":"https://github.com/vanruesc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iterator Result\n\n[![Build status](https://travis-ci.org/vanruesc/iterator-result.svg?branch=master)](https://travis-ci.org/vanruesc/iterator-result)\n[![NPM version](https://badge.fury.io/js/iterator-result.svg)](http://badge.fury.io/js/iterator-result)\n[![Dependencies](https://david-dm.org/vanruesc/iterator-result.svg?branch=master)](https://david-dm.org/vanruesc/iterator-result)\n\nThe [iterator protocol](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) defines a standard\nway to produce a sequence of values. An object is an iterator when it implements a `next()` method which returns objects\nthat have at least the two properties `value` and `done`. This module provides a base class for such iterator results.\n\n*[API Reference](https://vanruesc.github.io/iterator-result)*\n\n\n## Installation\n\n```sh\nnpm install iterator-result\n``` \n\n\n## Usage\n\n```javascript\nimport IteratorResult from \"iterator-result\";\n\nexport class InfiniteIterator {\n\n\tconstructor() {\n\n\t\tthis.result = new IteratorResult();\n\n\t}\n\n\tnext() {\n\n\t\treturn this.result;\n\n\t}\n\n}\n\n```\n\n\n## Contributing\n\nMaintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanruesc%2Fiterator-result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanruesc%2Fiterator-result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanruesc%2Fiterator-result/lists"}