{"id":16428850,"url":"https://github.com/netanelbasal/paginate-array","last_synced_at":"2025-03-16T17:34:55.120Z","repository":{"id":55110731,"uuid":"68897946","full_name":"NetanelBasal/paginate-array","owner":"NetanelBasal","description":"Array pagination","archived":false,"fork":false,"pushed_at":"2021-01-09T18:08:19.000Z","size":25,"stargazers_count":42,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T11:49:36.349Z","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/NetanelBasal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-22T07:53:43.000Z","updated_at":"2024-12-17T05:35:27.000Z","dependencies_parsed_at":"2022-08-14T12:20:25.664Z","dependency_job_id":null,"html_url":"https://github.com/NetanelBasal/paginate-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/NetanelBasal%2Fpaginate-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fpaginate-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fpaginate-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetanelBasal%2Fpaginate-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetanelBasal","download_url":"https://codeload.github.com/NetanelBasal/paginate-array/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822295,"owners_count":20353500,"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-11T08:19:31.678Z","updated_at":"2025-03-16T17:34:54.862Z","avatar_url":"https://github.com/NetanelBasal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://semaphoreci.com/api/v1/netanel7799/paginate-array/branches/master/badge.svg)](https://semaphoreci.com/netanel7799/paginate-array)\n\n# Array pagination\n\nSimple pagination for arrays in javascript\n## Installation\n```js\nnpm install paginate-array\n```\n\n## Usage\n\n```js\n\nconst paginate = require(\"paginate-array\");\nconst collection = [...];\n\nconst paginateCollection = paginate(collection[,pageNumber, numItemsPerPage]);\n\nconsole.log(paginateCollection)\n\n{\n    currentPage: 1,\n    perPage: 10,\n    total: 20,\n    totalPages: 2,\n    data: [...]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetanelbasal%2Fpaginate-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetanelbasal%2Fpaginate-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetanelbasal%2Fpaginate-array/lists"}