{"versions":{"2.0.0":{"name":"hexo-pagination","version":"2.0.0","description":"","main":"lib/pagination","scripts":{"eslint":"eslint .","test":"mocha test/index.js","test-cov":"nyc npm run test"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"https://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^4.1.2","eslint":"^7.1.0","eslint-config-hexo":"^4.1.0","mocha":"^8.1.1","nyc":"^15.0.0"},"engines":{"node":">=10.13.0"},"gitHead":"87ed40beedcd37337b7393aa0c7984e1f9da946d","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_id":"hexo-pagination@2.0.0","_nodeVersion":"16.1.0","_npmVersion":"6.14.11","dist":{"shasum":"41283f7daab56ea29f2a4c52f9b91e0cbf8a4bdb","size":2432,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-2.0.0.tgz"},"_npmUser":{"name":"anonymous","email":"nayo-msoft@outlook.jp"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-pagination_2.0.0_1622723687485_0.8347100394916904"},"_hasShrinkwrap":false,"publish_time":1622723687635,"_cnpm_publish_time":1622723687635,"contributors":[]},"1.0.0":{"name":"hexo-pagination","version":"1.0.0","description":"","main":"lib/pagination","scripts":{"eslint":"eslint .","test":"mocha test/index.js","test-cov":"nyc npm run test"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"http://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^4.1.2","eslint":"^6.0.1","eslint-config-hexo":"^3.0.0","mocha":"^6.0.2","nyc":"^14.1.1"},"engines":{"node":">=8.6.0"},"gitHead":"3f763d59eb410dcc055eac542edc2e0a6c5dd886","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_id":"hexo-pagination@1.0.0","_nodeVersion":"12.8.1","_npmVersion":"6.9.0","dist":{"shasum":"c9c0ca3665267b9e9d0a89fc3edcaf3276907dc1","size":2453,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"_npmUser":{"name":"anonymous","email":"piartt@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-pagination_1.0.0_1566835274856_0.5588999149012206"},"_hasShrinkwrap":false,"publish_time":1566835274981,"_cnpm_publish_time":1566835274981,"contributors":[]},"1.0.0-rc1":{"name":"hexo-pagination","version":"1.0.0-rc1","description":"","main":"lib/pagination","scripts":{"eslint":"eslint .","test":"mocha test/index.js","test-cov":"nyc npm run test"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"http://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^4.1.2","eslint":"^6.0.1","eslint-config-hexo":"^3.0.0","mocha":"^6.0.2","nyc":"^14.1.1"},"engines":{"node":">=8.6.0"},"gitHead":"3f763d59eb410dcc055eac542edc2e0a6c5dd886","readmeFilename":"README.md","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_id":"hexo-pagination@1.0.0-rc1","_nodeVersion":"12.8.0","_npmVersion":"6.9.0","dist":{"shasum":"ab7706bc402e25a59293fcdbddca4059a8e86d2f","size":2459,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-1.0.0-rc1.tgz"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"_npmUser":{"name":"anonymous","email":"piartt@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-pagination_1.0.0-rc1_1565801230630_0.9514420442716167"},"_hasShrinkwrap":false,"publish_time":1565801230758,"_cnpm_publish_time":1565801230758,"contributors":[]},"0.1.0":{"name":"hexo-pagination","version":"0.1.0","description":"","main":"lib/pagination","scripts":{"eslint":"eslint .","jscs":"jscs .","test":"mocha test/index.js","test-cov":"istanbul cover --print both _mocha -- test/index.js"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"http://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^2.12.0","eslint-config-hexo":"^1.0.3","istanbul":"^0.4.3","jscs":"^3.0.4","jscs-preset-hexo":"^1.0.1","mocha":"^2.5.3"},"dependencies":{"object-assign":"^4.1.0"},"gitHead":"c4fc916be3978392cfbede61c3b8322cc9b17525","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_id":"hexo-pagination@0.1.0","_shasum":"54f0be12e6ae51d1c0a6f0023674ba77ac514ce3","_from":".","_npmVersion":"3.7.1","_nodeVersion":"4.3.0","_npmUser":{"name":"anonymous","email":"tommy351@gmail.com"},"dist":{"shasum":"54f0be12e6ae51d1c0a6f0023674ba77ac514ce3","size":2781,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-0.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/hexo-pagination-0.1.0.tgz_1465821096810_0.2622474799863994"},"publish_time":1465821097480,"_cnpm_publish_time":1465821097480,"_hasShrinkwrap":false,"contributors":[]},"0.0.2":{"name":"hexo-pagination","version":"0.0.2","description":"","main":"lib/pagination","scripts":{"test":"gulp test"},"directories":{"lib":"./lib"},"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git://github.com/hexojs/hexo-pagination.git"},"bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"homepage":"http://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^1.9.1","coveralls":"^2.11.2","gulp":"^3.8.9","gulp-istanbul":"^0.5.0","gulp-jshint":"^1.8.6","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","jshint-stylish":"^1.0.0","mocha":"^2.0.1","rimraf":"^2.2.8"},"dependencies":{"utils-merge":"^1.0.0"},"gitHead":"1a1bc6cfec28fed01520c3862b768fa6c74d09dc","_id":"hexo-pagination@0.0.2","_shasum":"8cf470c7db0de5b18a3926a76deb194015df7f2b","_from":".","_npmVersion":"2.1.8","_nodeVersion":"0.10.33","_npmUser":{"name":"anonymous","email":"tommy351@gmail.com"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"dist":{"shasum":"8cf470c7db0de5b18a3926a76deb194015df7f2b","size":2606,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-0.0.2.tgz"},"publish_time":1419849889439,"_cnpm_publish_time":1419849889439,"_hasShrinkwrap":false,"contributors":[]},"0.0.1":{"name":"hexo-pagination","version":"0.0.1","description":"","main":"lib/pagination","scripts":{"test":"gulp test"},"directories":{"lib":"./lib"},"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git://github.com/hexojs/hexo-pagination.git"},"bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"homepage":"http://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"chai":"^1.9.1","coveralls":"^2.11.2","gulp":"^3.8.9","gulp-istanbul":"^0.5.0","gulp-jshint":"^1.8.6","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","jshint-stylish":"^1.0.0","mocha":"^2.0.1","rimraf":"^2.2.8"},"dependencies":{"utils-merge":"^1.0.0"},"gitHead":"84f2d7861b9ac35cc6c734571a9aac96d6241492","_id":"hexo-pagination@0.0.1","_shasum":"17fcb336580d731a1c7a8c07dc82491e6248ef20","_from":".","_npmVersion":"2.1.8","_nodeVersion":"0.10.33","_npmUser":{"name":"anonymous","email":"tommy351@gmail.com"},"maintainers":[{"name":"anonymous","email":"zhcjtht@hotmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"tommy351@gmail.com"}],"dist":{"shasum":"17fcb336580d731a1c7a8c07dc82491e6248ef20","size":2256,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-0.0.1.tgz"},"publish_time":1419571074742,"_cnpm_publish_time":1419571074742,"_hasShrinkwrap":false,"contributors":[]},"3.0.0":{"name":"hexo-pagination","version":"3.0.0","description":"Pagination utilities for Hexo generator plugins.","main":"lib/pagination","scripts":{"eslint":"eslint .","test":"mocha test/index.js","test-cov":"c8 --reporter=lcovonly npm run test"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"https://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"c8":"^7.12.0","chai":"^4.3.6","eslint":"^8.24.0","eslint-config-hexo":"^5.0.0","mocha":"^10.0.0"},"engines":{"node":">=14"},"gitHead":"9b10ed0e9f55cb5cf32362ba3523763e573b6a51","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_id":"hexo-pagination@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.4.0","dist":{"integrity":"sha512-8oo1iozloZo7TojPVYg4IxL3SJKCBdSJ908fTlIxIK7TWJIKdYnQlW31+12DBJ0NhVZA/lZisPObGF08wT8fKw==","shasum":"b98b050bbddff25ae646e3d00ad607ac6ae77ea7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-3.0.0.tgz","fileCount":4,"unpackedSize":4986,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBeUMOqH8f3iW3jvOtfPtlALk7hjDNe+FXE67ItIkoewIgLuhZkikUWd+NUpqHJQVebryEBFKXpGq1oClDr0Y8mT4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRqr6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph2hAAmHQrwsmBxGqHKtmV2qGS+SMJT57uajNQMlzLQmU1j6bt57Ts\r\nHWEetFfkIJjs/iFq6nyUJdNXC1+kTDdFdrvk48nnDDRSrZQx3q3vigltBOP5\r\nACp5jeUdT8ZqAGzucyRIP48u/wPtN2giY2a4i1p/FqNcR9TlFXITGbPW9Ito\r\nce+mUfmB83tbJ34crPl5B/Ho5uZR5ppcUXfnFOmbXSCK6oxWkhFUJjGupC/s\r\nafHDXimVxeKacslQLd9IZ/yWMOe30f3+J6AI1np+QbEz5/rFYAvz/2xjLYys\r\nbzpmRlFoPwS5eHHZxyzbf2L8s2pE2glzTqGD0kSLJJ2h/Igi2C8Ny8g0xftx\r\n06a6paG3PTari6XRCFiWppnN76nd6UdEj+9OThTCSNKDCiwscpvgBdb9uH9l\r\negFv/OYIJXR8sTkgQ3BbqQmV9iGHJgh4Hk1UVN+QtttS5AXTtp3ltz4T+0wd\r\n1b52zO7urnR9td8YwU3c0+7rrufBe09HRvlkFgz2mnkfqCBq5FqB0qOzrrzk\r\nvJF0XDR2Xb/NnekJ/Ap1kM2AqTAZkSEOJPoxZeknumsoD6TNLn0DUNkV64/n\r\nkrqwmtTKJyh09CyJErNXGMuY5+572Krk08E+bFInZCFQfDT96IEXiW5BSa5L\r\njlcuQT/VMRKv/Fml5zI4U2QMV5M5VM6MjuQ=\r\n=7csX\r\n-----END PGP SIGNATURE-----\r\n","size":2450},"_npmUser":{"name":"anonymous","email":"yoshinorin.net@outlook.com"},"maintainers":[{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hi@abnerchou.me"},{"name":"anonymous","email":"tommy351@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"i@jhuang.me"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"yoshinorin.net@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-pagination_3.0.0_1665575674235_0.7476815304884434"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-16T03:20:13.972Z","contributors":[]},"4.0.0":{"name":"hexo-pagination","version":"4.0.0","description":"Pagination utilities for Hexo generator plugins.","main":"lib/pagination","scripts":{"eslint":"eslint .","test":"mocha test/index.js","test-cov":"c8 --reporter=lcovonly npm run test"},"directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/hexojs/hexo-pagination.git"},"homepage":"https://hexo.io/","keywords":["hexo","pagination","util"],"author":{"name":"Tommy Chen","email":"tommy351@gmail.com","url":"http://zespia.tw"},"license":"MIT","devDependencies":{"c8":"^7.12.0","chai":"^4.3.6","eslint":"^8.24.0","eslint-config-hexo":"^5.0.0","mocha":"^10.0.0"},"engines":{"node":">=18"},"_id":"hexo-pagination@4.0.0","gitHead":"0804e679f9bc7672bfa2decd8f77f92ed5c95de8","bugs":{"url":"https://github.com/hexojs/hexo-pagination/issues"},"_nodeVersion":"22.3.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-jNG6AX3EHzY3FRfdzB46tZ833CUX4WudZue3yv6kKaVCCWR61iwFL9LD6xQadvwHBuT1oHy444dJClWORG4sxg==","shasum":"19fb4a8074598da9688fab825ccca4687844e23a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/hexo-pagination/-/hexo-pagination-4.0.0.tgz","fileCount":4,"unpackedSize":5981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcc4yiZ/BHxlVLKpo4uXxLK9PVEZ3yALcPd9ke1mbHgAiBgvRtZ+NU6xDcRHIVrO9Y6Efy0UnyeExBnTMp+LBM9rw=="}],"size":2625},"_npmUser":{"name":"anonymous","email":"yoshinorin.net@outlook.com"},"maintainers":[{"name":"anonymous","email":"mateusz.derks@gmail.com"},{"name":"anonymous","email":"hi@abnerchou.me"},{"name":"anonymous","email":"tommy351@gmail.com"},{"name":"anonymous","email":"hexojs@gmail.com"},{"name":"anonymous","email":"jlhwung@gmail.com"},{"name":"anonymous","email":"piartt@gmail.com"},{"name":"anonymous","email":"bushedge@protonmail.com"},{"name":"anonymous","email":"yoshinorin.net@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hexo-pagination_4.0.0_1720619397382_0.5328580774848413"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-10T13:49:57.524Z","publish_time":1720619397524,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"4.0.0","next":"1.0.0-rc1"},"name":"hexo-pagination","time":{"modified":"2026-05-15T14:50:00.242Z","created":"2022-01-27T14:26:11.929Z","2.0.0":"2021-06-03T12:34:47.635Z","1.0.0":"2019-08-26T16:01:14.981Z","1.0.0-rc1":"2019-08-14T16:47:10.758Z","0.1.0":"2016-06-13T12:31:37.480Z","0.0.2":"2014-12-29T10:44:49.439Z","0.0.1":"2014-12-26T05:17:54.742Z","3.0.0":"2022-10-12T11:54:34.422Z","4.0.0":"2024-07-10T13:49:57.524Z"},"readme":"# hexo-pagination\n\n[![Build Status](https://github.com/hexojs/hexo-pagination/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-pagination/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-pagination.svg)](https://www.npmjs.com/package/hexo-pagination)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-pagination.svg)](https://coveralls.io/r/hexojs/hexo-pagination?branch=master)\n\nPagination utilities for [Hexo] generator plugins.\n\n## Installation\n\n```bash\n$ npm install hexo-pagination --save\n```\n\n## Usage\n\n### pagination(base, posts, [options])\n\n| Option           | Description                                     | Default                |\n| ---------------- | ----------------------------------------------- | ---------------------- |\n| `perPage`        | Posts displayed per page                        | `10`                   |\n| `format`         | URL format                                      | `page/%d/`             |\n| `layout`         | Layout. This value can be a string or an array. | `['archive', 'index']` |\n| `data`           | Extra data                                      | `{}`                   |\n| `explicitPaging` | Number the first page. e.g. `page/1/index.html` | `false`                |\n\nFor example:\n\n```js\nvar pagination = require(\"hexo-pagination\");\n\npagination(\"/tags/hexo\", [], {\n  perPage: 10,\n  format: \"page/%d/\",\n  layout: [\"archive\", \"index\"],\n  data: {\n    tag: \"hexo\",\n  },\n});\n```\n\nThis function returns an array containing objects with 3 properties: `path`, `layout`, `data`.\n\n| Data          | Description                                       |\n| ------------- | ------------------------------------------------- |\n| `base`        | Base URL                                          |\n| `total`       | Total pages                                       |\n| `current`     | Current page number                               |\n| `current_url` | Path of the current page (which equals to `path`) |\n| `posts`       | The slice of posts for the current page           |\n| `prev`        | Previous page number                              |\n| `prev_link`   | The path to the previous page                     |\n| `next`        | Next page number                                  |\n| `next_link`   | The path to the next page                         |\n\n## License\n\nMIT\n\n[Hexo]: https://hexo.io/","users":{}}