{"id":15836999,"url":"https://github.com/afeiship/data-pagination","last_synced_at":"2025-10-03T20:19:44.742Z","repository":{"id":96087893,"uuid":"105524531","full_name":"afeiship/data-pagination","owner":"afeiship","description":"Raw data(items) pagination.","archived":false,"fork":false,"pushed_at":"2024-06-05T06:02:51.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T22:09:46.727Z","etag":null,"topics":["data","next","page","pagination","previous","total"],"latest_commit_sha":null,"homepage":"","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-10-02T10:55:02.000Z","updated_at":"2024-06-05T06:02:54.000Z","dependencies_parsed_at":"2024-06-05T04:46:47.420Z","dependency_job_id":"8a5f8e31-0381-4fac-b3f6-3fa87cbfea8e","html_url":"https://github.com/afeiship/data-pagination","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"84546f8c11d3b9b13266a3875a4fd7bb793f0eee"},"previous_names":["afeiship/data-pagination"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/data-pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fdata-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fdata-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fdata-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fdata-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/data-pagination/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fdata-pagination/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262056510,"owners_count":23251689,"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":["data","next","page","pagination","previous","total"],"created_at":"2024-10-05T15:20:26.549Z","updated_at":"2025-10-03T20:19:39.709Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-pagination\n\u003e Raw data(items) pagination.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install @jswork/data-pagination\n```\n\n## usage\n```js\nimport DataPagination from '@jswork/data-pagination';\n\nconst dp = new DataPagination([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);\n\n// to first page\ndp.first();\n\n// to last page\ndp.last();\n\n// to next page\ndp.next();\n\n// to prev page\ndp.prev();\n\n// to page 2\ndp.goto(2);\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/data-pagination/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/data-pagination\n[version-url]: https://npmjs.org/package/@jswork/data-pagination\n\n[license-image]: https://img.shields.io/npm/l/@jswork/data-pagination\n[license-url]: https://github.com/afeiship/data-pagination/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/data-pagination\n[size-url]: https://github.com/afeiship/data-pagination/blob/master/dist/index.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/data-pagination\n[download-url]: https://www.npmjs.com/package/@jswork/data-pagination\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fdata-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fdata-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fdata-pagination/lists"}