{"id":26227623,"url":"https://github.com/venkatasaikatepalli/create-pagin","last_synced_at":"2025-10-29T06:45:57.135Z","repository":{"id":57210638,"uuid":"154256478","full_name":"venkatasaikatepalli/create-pagin","owner":"venkatasaikatepalli","description":"pagination creation package for javascript frameworks","archived":false,"fork":false,"pushed_at":"2021-05-09T15:28:05.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-02T02:27:08.284Z","etag":null,"topics":["codejunkers","javascript","pagination","venkatasaikatepalli"],"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/venkatasaikatepalli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-10-23T03:30:17.000Z","updated_at":"2020-06-28T06:38:08.000Z","dependencies_parsed_at":"2022-08-31T05:02:41.580Z","dependency_job_id":null,"html_url":"https://github.com/venkatasaikatepalli/create-pagin","commit_stats":null,"previous_names":["codejunkers1/create-pagin"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/venkatasaikatepalli/create-pagin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatasaikatepalli%2Fcreate-pagin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatasaikatepalli%2Fcreate-pagin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatasaikatepalli%2Fcreate-pagin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatasaikatepalli%2Fcreate-pagin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venkatasaikatepalli","download_url":"https://codeload.github.com/venkatasaikatepalli/create-pagin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venkatasaikatepalli%2Fcreate-pagin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281577703,"owners_count":26524886,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codejunkers","javascript","pagination","venkatasaikatepalli"],"created_at":"2025-03-12T20:18:30.692Z","updated_at":"2025-10-29T06:45:57.090Z","avatar_url":"https://github.com/venkatasaikatepalli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-pagin\n[![npm version](https://img.shields.io/npm/v/create-pagin.svg?style=flat-square)](https://www.npmjs.org/package/create-pagin)\n[![npm downloads](https://img.shields.io/npm/dm/create-pagin.svg?style=flat-square)](http://npm-stat.com/charts.html?package=create-pagin)\n[![LICENSE](https://img.shields.io/github/license/codejunkers1/create-pagin.svg?style=flat-square)](https://github.com/codejunkers1/create-pagin)\n\n## Features\n\n- Create Pagination for user data\n- Create Pagination with sort by key for user data\n- Create Pagination with search by value on selected columns for user data\n- Create Pagination with Full Text Searching by value\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install create-pagin\n```\n\n## Example\n\nGenerating `Pagination` for Given data\n\n```js\n// import create pagin module to Pagin\n import Pagin from 'create-pagin'\n \n // data for paginating\n var data = [\n    {name: 'Testa', grade: 'A'},\n    {name: 'Test2', grade: 'B'},\n    {name: 'Testa', grade: 'C'},\n    {name: 'Test4', grade: 'A'},\n ]\n // Calling paginating module and result to a variable\n\n // only pagination\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2}) \n \n // pagination with sorting by key ascending\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2, sort_by: 'name'}) \n \n // pagination with sorting by key descending\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2, sort_by: '-name'}) \n\n // pagination with search by value and selected columns\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2, sort_by: 'name', search: 'a', search_cols: ['name', 'grade']}) \n\n // Pagination with Full Text Searching by value\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2, sort_by: 'name', search: 'a'})\n\n // Search the multiple values\n var result = Pagin.CreatePagin(data, {page_size:10, page_no: 2, sort_by: 'name', search: ['a', 'b']}) \n\n // Result values\n console.log(result);\n {\n \t\tpage_size: 10,\n\t  page_no: 1,\n\t  previous_page: null,\n\t  current_page: 1,\n\t  next_page: null,\n\t  total_pages: null,\n\t  data: [],\n\t  total: 4,\n\t  from: 1,\n\t  to: 4\n }\n```\n\n## Author\n\n[Venkata Sai Katepalli - Full Stack Engineer](http://venkatasaikatepalli.github.io)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatasaikatepalli%2Fcreate-pagin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenkatasaikatepalli%2Fcreate-pagin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenkatasaikatepalli%2Fcreate-pagin/lists"}