|
1 | 1 | # Paginator
|
2 | 2 |
|
3 |
| -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-stats] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Codecov Status][codecov-image]][codecov-url] [![Scrutinizer Code Quality][scrutinizer-image]][scrutinizer-url] |
| 3 | +[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-stats] |
4 | 4 |
|
5 | 5 | With this package you can easy create a pagination object.
|
6 | 6 |
|
7 | 7 | ## Example usage
|
8 | 8 |
|
9 | 9 | ```javascript
|
10 |
| -import Paginator from '@hckrnews/paginator' |
| 10 | +import Paginator from '@trojs/paginator' |
11 | 11 |
|
12 | 12 | const results = Paginator({
|
13 | 13 | items,
|
@@ -94,15 +94,7 @@ It returns all items for the given page.
|
94 | 94 | E.g. in the example you see all items for page 1 (second page).
|
95 | 95 | Because there are 21 items, the next page will return just an array with 1 item.
|
96 | 96 |
|
97 |
| -[downloads-image]: https://img.shields.io/npm/dm/@hckrnews/paginator.svg |
98 |
| -[npm-url]: https://www.npmjs.com/package/@hckrnews/paginator |
99 |
| -[npm-image]: https://img.shields.io/npm/v/@hckrnews/paginator.svg |
100 |
| -[npm-stats]: https://npm-stat.com/charts.html?package=@hckrnews/paginator |
101 |
| -[travis-url]: https://travis-ci.org/hckrnews/paginator |
102 |
| -[travis-image]: https://img.shields.io/travis/hckrnews/paginator/main.svg |
103 |
| -[coveralls-url]: https://coveralls.io/r/hckrnews/paginator |
104 |
| -[coveralls-image]: https://img.shields.io/coveralls/hckrnews/paginator/main.svg |
105 |
| -[codecov-url]: https://codecov.io/gh/hckrnews/paginator |
106 |
| -[codecov-image]: https://img.shields.io/codecov/c/github/hckrnews/paginator.svg |
107 |
| -[scrutinizer-url]: https://scrutinizer-ci.com/g/hckrnews/paginator/?branch=main |
108 |
| -[scrutinizer-image]: https://scrutinizer-ci.com/g/hckrnews/paginator/badges/quality-score.png?b=main |
| 97 | +[downloads-image]: https://img.shields.io/npm/dm/@trojs/paginator.svg |
| 98 | +[npm-url]: https://www.npmjs.com/package/@trojs/paginator |
| 99 | +[npm-image]: https://img.shields.io/npm/v/@trojs/paginator.svg |
| 100 | +[npm-stats]: https://npm-stat.com/charts.html?package=@trojs/paginator |
0 commit comments