{"id":20388910,"url":"https://github.com/iterable-iterator/range","last_synced_at":"2025-04-12T10:51:22.010Z","repository":{"id":37785408,"uuid":"362118016","full_name":"iterable-iterator/range","owner":"iterable-iterator","description":":mountain: A range function for JavaScript","archived":false,"fork":false,"pushed_at":"2025-03-12T16:24:59.000Z","size":2007,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T17:40:23.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://iterable-iterator.github.io/range","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iterable-iterator.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":"2021-04-27T13:15:06.000Z","updated_at":"2025-02-21T23:42:42.000Z","dependencies_parsed_at":"2024-02-06T01:45:31.888Z","dependency_job_id":"acedf9b9-0cf3-4d2b-9e24-c708e7109866","html_url":"https://github.com/iterable-iterator/range","commit_stats":{"total_commits":359,"total_committers":5,"mean_commits":71.8,"dds":0.5292479108635098,"last_synced_commit":"74c12831dd629d4692c165f1c2ead5409d4bd2ed"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iterable-iterator%2Frange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iterable-iterator%2Frange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iterable-iterator%2Frange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iterable-iterator%2Frange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iterable-iterator","download_url":"https://codeload.github.com/iterable-iterator/range/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557844,"owners_count":21124165,"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":[],"created_at":"2024-11-15T03:13:55.822Z","updated_at":"2025-04-12T10:51:21.974Z","avatar_url":"https://github.com/iterable-iterator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":":mountain: [@iterable-iterator/range](https://iterable-iterator.github.io/range)\n==\n\nA range function for JavaScript.\nSee [docs](https://iterable-iterator.github.io/range/index.html).\n\n\u003e :warning: Depending on your environment, the code may require\n\u003e `regeneratorRuntime` to be defined, for instance by importing\n\u003e [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).\n\n```js\nimport {range} from '@iterable-iterator/range';\nrange( 3 ) ; // 0 1 2\nrange( 2 , 5 ) ; // 2 3 4\nrange( 5 , 2 , -1 ) ; // 5 4 3\n\nrange(Number.MAX_SAFE_INTEGER).has(1234); // true\nrange(0, 10, 2).get(3); // 6\n\n// If you only use the iterator feature you can save bytes by calling the\n// IterableIterator function directly\nimport {forwardRangeIterator, backwardRangeIterator} from '@iterable-iterator/range';\n\nfor (const x of forwardRangeIterator(0, 10, 1)) ...\nfor (const x of backwardRangeIterator(10, 0, -1)) ...\n// caveat: This requires you to specify all parameters, and choose the correct\n// implementation depending on the sign of the `step` parameter.\n\n// For convenience, rangeIterator will return the correct kind of\n// IterableIterator without constructing a Range object. It has the same signature\n// as the range function.\nimport {rangeIterator as range} from '@iterable-iterator/range';\n```\n\n[![License](https://img.shields.io/github/license/iterable-iterator/range.svg)](https://raw.githubusercontent.com/iterable-iterator/range/main/LICENSE)\n[![Version](https://img.shields.io/npm/v/@iterable-iterator/range.svg)](https://www.npmjs.org/package/@iterable-iterator/range)\n[![Tests](https://img.shields.io/github/actions/workflow/status/iterable-iterator/range/ci.yml?branch=main\u0026event=push\u0026label=tests)](https://github.com/iterable-iterator/range/actions/workflows/ci.yml?query=branch:main)\n[![Dependencies](https://img.shields.io/librariesio/github/iterable-iterator/range.svg)](https://github.com/iterable-iterator/range/network/dependencies)\n[![GitHub issues](https://img.shields.io/github/issues/iterable-iterator/range.svg)](https://github.com/iterable-iterator/range/issues)\n[![Downloads](https://img.shields.io/npm/dm/@iterable-iterator/range.svg)](https://www.npmjs.org/package/@iterable-iterator/range)\n\n[![Code issues](https://img.shields.io/codeclimate/issues/iterable-iterator/range.svg)](https://codeclimate.com/github/iterable-iterator/range/issues)\n[![Code maintainability](https://img.shields.io/codeclimate/maintainability/iterable-iterator/range.svg)](https://codeclimate.com/github/iterable-iterator/range/trends/churn)\n[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/iterable-iterator/range/main.svg)](https://codecov.io/gh/iterable-iterator/range)\n[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/iterable-iterator/range.svg)](https://codeclimate.com/github/iterable-iterator/range/trends/technical_debt)\n[![Documentation](https://iterable-iterator.github.io/range/badge.svg)](https://iterable-iterator.github.io/range/source.html)\n[![Package size](https://img.shields.io/bundlephobia/minzip/@iterable-iterator/range)](https://bundlephobia.com/result?p=@iterable-iterator/range)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiterable-iterator%2Frange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiterable-iterator%2Frange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiterable-iterator%2Frange/lists"}