{"id":17291859,"url":"https://github.com/fergiemcdowall/distribute-array","last_synced_at":"2025-03-26T19:15:55.472Z","repository":{"id":57213049,"uuid":"41964500","full_name":"fergiemcdowall/distribute-array","owner":"fergiemcdowall","description":"Distributes one array evenly between a given number of smaller arrays","archived":false,"fork":false,"pushed_at":"2016-02-04T08:36:42.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T21:36:08.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fergiemcdowall.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}},"created_at":"2015-09-05T14:45:02.000Z","updated_at":"2016-11-29T11:27:07.000Z","dependencies_parsed_at":"2022-08-24T21:01:30.792Z","dependency_job_id":null,"html_url":"https://github.com/fergiemcdowall/distribute-array","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/fergiemcdowall%2Fdistribute-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergiemcdowall%2Fdistribute-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergiemcdowall%2Fdistribute-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergiemcdowall%2Fdistribute-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fergiemcdowall","download_url":"https://codeload.github.com/fergiemcdowall/distribute-array/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245718787,"owners_count":20661161,"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-10-15T10:42:04.785Z","updated_at":"2025-03-26T19:15:55.451Z","avatar_url":"https://github.com/fergiemcdowall.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]\n\n# distribute-array\nDistributes one array evenly between a given number of smaller arrays\n\n```javascript\nvar da = require('distribute-array');\nvar arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\n\nnewArr = da(arr, 3);  // newArr is now [ [ 1, 2, 3, 10 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] \nnewArr = da(arr, 5);  // newArr is now [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ], [ 7, 8 ], [ 9, 10 ] ]\nnewArr = da(arr, 15); // newArr is now [ [ 1 ], [ 2 ], [ 3 ], [ 4 ], [ 5 ],\n                      //                 [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ],\n                      //                 [], [], [], [], [] ]\n```\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/distribute-array\n[npm-version-image]: http://img.shields.io/npm/v/distribute-array.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/distribute-array.svg?style=flat\n\n[travis-url]: http://travis-ci.org/fergiemcdowall/distribute-array\n[travis-image]: http://img.shields.io/travis/fergiemcdowall/distribute-array.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergiemcdowall%2Fdistribute-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffergiemcdowall%2Fdistribute-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergiemcdowall%2Fdistribute-array/lists"}