{"id":24108303,"url":"https://github.com/reactgular/chunks","last_synced_at":"2025-02-28T03:21:53.320Z","repository":{"id":143784032,"uuid":"245423224","full_name":"reactgular/chunks","owner":"reactgular","description":"Creates an array of elements split into groups the length of size.","archived":false,"fork":false,"pushed_at":"2020-03-11T13:23:05.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T21:02:09.213Z","etag":null,"topics":["array","arrays","chunk","chunks","javascript","javascript-library","typescript","typescript-library"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/reactgular.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":"2020-03-06T13:11:41.000Z","updated_at":"2021-10-18T13:46:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"66a62327-85d7-4948-870d-8f967ad45186","html_url":"https://github.com/reactgular/chunks","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/reactgular%2Fchunks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactgular%2Fchunks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactgular%2Fchunks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactgular%2Fchunks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactgular","download_url":"https://codeload.github.com/reactgular/chunks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241094271,"owners_count":19908647,"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":["array","arrays","chunk","chunks","javascript","javascript-library","typescript","typescript-library"],"created_at":"2025-01-10T23:35:48.278Z","updated_at":"2025-02-28T03:21:53.310Z","avatar_url":"https://github.com/reactgular.png","language":"TypeScript","readme":"[![Build Status](https://travis-ci.org/reactgular/chunks.svg?branch=master)](https://travis-ci.org/reactgular/chunks)\n[![Coverage Status](https://coveralls.io/repos/github/reactgular/chunks/badge.svg?branch=master)](https://coveralls.io/github/reactgular/chunks?branch=master)\n[![npm version](https://badge.fury.io/js/%40reactgular%2Fchunks.svg)](https://badge.fury.io/js/%40reactgular%2Fchunks)\n\n## What is Chunks?\n\nChunks is a TypeScript library that creates an array of elements split into groups the length of size. If the array can't be split evenly, the\nfinal chunk can be optionally padded with a default value. \n\n## Installation\n\nTo get started, install the package from npm.\n\n```bash\nnpm install --save @reactgular/chunks\n```\n\n## Usage\n\nChunks is small, simple and easy to use.\n\n```typescript\nimport {chunks} from '@reactgular/chunks';\n\nconsole.log(chunks([1,2,3,4,5],2))\n// =\u003e [[1,2],[3,4],[5]]\n\nconsole.log(chunks([1,2,3,4,5],2,undefined))\n// =\u003e [[1,2],[3,4],[5,undefined]]\n```\n\n# Getting help\n\nYou are welcome to open issues for general support questions as well as bug reports and feature requests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactgular%2Fchunks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactgular%2Fchunks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactgular%2Fchunks/lists"}