{"id":22394263,"url":"https://github.com/neox5/subarrayjs","last_synced_at":"2025-03-26T22:41:57.384Z","repository":{"id":39607695,"uuid":"281938784","full_name":"neox5/subarrayjs","owner":"neox5","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T14:58:58.000Z","size":656,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:19:21.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neox5.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}},"created_at":"2020-07-23T11:57:26.000Z","updated_at":"2020-07-23T13:55:35.000Z","dependencies_parsed_at":"2023-01-27T01:31:53.343Z","dependency_job_id":null,"html_url":"https://github.com/neox5/subarrayjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neox5%2Fsubarrayjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neox5%2Fsubarrayjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neox5%2Fsubarrayjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neox5%2Fsubarrayjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neox5","download_url":"https://codeload.github.com/neox5/subarrayjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749796,"owners_count":20666084,"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-12-05T05:09:35.278Z","updated_at":"2025-03-26T22:41:57.347Z","avatar_url":"https://github.com/neox5.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- omit in toc --\u003e\n# sub-arrays-js\n\nGenerates sub arrays from array\n\n\u003c!-- omit in toc --\u003e\n# Table of Contents\n- [Status](#status)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Options](#options)\n  - [License](#license)\n\n# Status\n\n[![npm](https://img.shields.io/npm/v/sub-arrays-js)](https://www.npmjs.com/package/sub-arrays-js)\n[![npm](https://img.shields.io/npm/l/sub-arrays-js)](#license)\n\n# Installation\n\n- Add with [yarn](https://yarnpkg.com/): `yarn add sub-arrays-js`\n- Add with [npm](https://www.npmjs.com/): `npm install sub-arrays-js`\n\n# Usage\n\n```js\nimport { subArrays } from \"sub-arrays-js\";\n\nfunction run() {\n  const src = [1,2,3,4];\n  const sub = subArrays(src, 1, src.length, true);\n  console.log(sub);\n}\n```\n\n```\n[[1], [2], [3], [4], [1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4], [1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4], [1, 2, 3, 4]]\n```\n\n# Options\n```\nsubArrays(source, \u003cminLength\u003e, \u003cmaxLength\u003e, \u003cordered\u003e): any[][]\n```\n\n- `source(any[])` - Source Array\n- `minLength(number)` - Minimum sub array length (default: 1)\n- `maxLength(number)` - Maximum sub array length (default: source.length)\n- `ordered(boolean)` - Order sub arrays by length (default: false)\n\n\n## License\n\n![NPM](https://img.shields.io/npm/l/sub-arrays-js)\n\n- **[MIT license](http://opensource.org/licenses/mit-license.php)**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneox5%2Fsubarrayjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneox5%2Fsubarrayjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneox5%2Fsubarrayjs/lists"}