Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bazhe/paginator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bazhe/paginator - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

CHANGELOG.md
# @bazhe/paginator
## 1.2.0
### Minor Changes
- [`ac9b24e`](https://github.com/Blagoj5/pagination/commit/ac9b24ecea946ede610ca9ef5b54aa05cd00bc0e) Thanks [@Blagoj5](https://github.com/Blagoj5)! - Update readmes
## 1.1.1

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@bazhe/paginator",
"version": "1.1.1",
"version": "1.2.0",
"description": "Pagination utilties for handling pagination logic",

@@ -5,0 +5,0 @@ "author": "Blagoj Petrov",

# @bazhe/paginator
<!-- TODO: Add link to @bazhe/use-pagination, etc etc -->
@bazhe/paginator provides utilities for handling your pagination. Used in: [@bazhe/use-pagination](https://www.npmjs.com/package/@bazhe/use-pagination), [@bazhe/with-pagination](https://www.npmjs.com/package/@bazhe/with-pagination), [@bazhe/pagination-wrapper](https://www.npmjs.com/package/@bazhe/pagination-wrapper)
@bazhe/paginator provides utilities for handling your pagination. Used in: @bazhe/use-pagination, @bazhe/with-pagination, @bazhe/with-wrapper
**Playground/Demo:** https://blagoj5.github.io/pagination/#playground
**Full documentation:** https://blagoj5.github.io/pagination
<!-- TODO: Full documentation on: link#use-pagination -->
## Getting Started

@@ -96,3 +95,3 @@

| constructor(perPage: number, links: number) | | The constructor that creates paginator object. Example: new Paginator(4, 10) |
| build | \<T>(total_results: number, current_page?: number, items?: T[]) => PaginationResult | The main methods that returns the fully expected pagination result |
| build | \<T>(total_results: number, current_page?: number, items?: T[]) => PaginationResult | The main method that returns the fully expected pagination result |
| getFirstPage | (currentPage: number) => number | Gets first page, depending on the number of links (ex. buttons displayed in the pagination bar) |

@@ -99,0 +98,0 @@ | getLastPage | (currentPage: number) => number | Gets last page, depending on the number of links (ex. buttons displayed in the pagination bar) |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc