{"id":18539115,"url":"https://github.com/simov/sr-pagination","last_synced_at":"2025-06-19T15:39:22.429Z","repository":{"id":8102876,"uuid":"9517850","full_name":"simov/sr-pagination","owner":"simov","description":"Simple pagination generator","archived":false,"fork":false,"pushed_at":"2013-07-24T13:28:28.000Z","size":240,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T19:12:47.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://simov.github.io/sr-pagination/test/","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/simov.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":"2013-04-18T09:19:49.000Z","updated_at":"2022-10-18T04:14:55.000Z","dependencies_parsed_at":"2022-08-24T11:20:32.770Z","dependency_job_id":null,"html_url":"https://github.com/simov/sr-pagination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simov/sr-pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fsr-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fsr-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fsr-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fsr-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simov","download_url":"https://codeload.github.com/simov/sr-pagination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simov%2Fsr-pagination/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259436117,"owners_count":22857131,"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-11-06T19:46:23.322Z","updated_at":"2025-06-19T15:39:17.415Z","avatar_url":"https://github.com/simov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"sr-pagination\n=======\n\nSimple pagination generator.\n\n\u003e The **sr** prefix stands for *simpler*, which is comparative of *sim·ple* (Adjective)\u003cbr /\u003e\n\u003e 1. Easily understood or done; presenting no difficulty.\u003cbr /\u003e\n\u003e 2. Plain, basic, or uncomplicated in form, nature, or design; without much decoration or ornamentation.\n\n\n##Install\n- [bower][1]: sr-pagination\n- [component][2]: simov/sr-pagination\n- [npm][3]: sr-pagination\n\n##Usage\nNote that you can use this module with commonjs (nodejs), amdjs or as a global object in the browser.\n\n```js\nvar result = pagination({page:1, links: 5, rows: 5, total: 50});\n```\n\n##Options\n- **page**: current page\n- **links**: visible page links\n- **rows**: rows per page\n- **total**: total number of all items\n\n##Tests\nMake sure you check out the [test][4] page.\n\n\n  [1]: http://sindresorhus.com/bower-components/\n  [2]: http://component.io/\n  [3]: https://npmjs.org/\n  [4]: http://simov.github.io/sr-pagination/test/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fsr-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimov%2Fsr-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimov%2Fsr-pagination/lists"}