{"name":"octokit-pagination-methods","version":"1.1.0","publishConfig":{"access":"public","tag":"latest"},"description":"Legacy Octokit pagination methods from v15","main":"index.js","directories":{"test":"test"},"scripts":{"coverage":"tap --coverage-report=html","coverage:upload":"npm run test && tap --coverage-report=text-lcov | coveralls","pretest":"standard && standard-markdown *.md","test":"tap --coverage test.js","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/gr2m/octokit-pagination-methods.git"},"keywords":["octokit","github","api","rest","plugin"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/octokit-pagination-methods/issues"},"homepage":"https://github.com/gr2m/octokit-pagination-methods#readme","devDependencies":{"@octokit/rest":"github:octokit/rest.js#next","coveralls":"^3.0.2","nock":"^10.0.2","semantic-release":"^15.10.8","simple-mock":"^0.8.0","standard":"^12.0.1","standard-markdown":"^5.0.1","tap":"^12.0.1"},"dependencies":{},"gitHead":"cd4e0dffc7535bf7bca0e328a6aa70f81634f58d","_id":"octokit-pagination-methods@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"integrity":"sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==","shasum":"cf472edc9d551055f9ef73f6e42b4dbb4c80bea4","tarball":"http://registry-npm.ywwl.com/octokit-pagination-methods/download/octokit-pagination-methods-1.1.0.tgz","fileCount":19,"unpackedSize":15359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5HvdCRA9TVsSAnZWagAAEtgP/in1AAJbmrBP3AZ8XsMb\n056/ZSAmf4UhGjGBK/gLskEbgnNRcTEhmZmg31u+sD35/QQoM9p52Wlg7eeD\nfxprjxVvby3nxrGhAHNoc0ljJQjAWgth7fPssL3ZL/EZLey4xhDN5IBJPuks\naZ9LqYzvo0OTVSuwFA4x9Sih7GuaKHePYNgskDxS2SxSC1QonowH5KsAJdGz\n51mbaDAcvGHRD0jfTD/e8kAkhyPKsdqN+Wa+ePexq1VnQgDFO8rXXQPw0Ix0\nTMtT4ivOFGrvvxlcUr3gyB6lSyTE/en7lGf1+Eiya19XTqeJlHISu6HVVRUE\nJJgket5KJGdkYeexdsWyLKTxxJtbzxlDzJh3fcAWHWJpTh1wC6EoTEmjDWDS\nHJenypF/DM1EQX+Wx0/a7ctrQPX69BtPVI5baOzJ2fYNzL3rsdqVpQ4bmflr\nLBv5uR8wTS7aa8/3TDIF1qyiOWk/ljjpq0UZQthe3lEPj/OtAgGabcuzUfmf\npiL3dtEWXJlGbGd85oGoEBWAEGCzb/gkXxvE8weDhEgud+VAHAt2paLfJnT+\nyDrm88pwi37KN41IFHwlBnT1SBMy/L2EEZIGVP9W8Jn5TxtsCSFdoq+Ewr7d\nKvUxnSuuhw2M95ztEMmvBqTgrhyt2BkvOnMwsFJKhBfaFeiGui5GMn3yhFRm\nBu+6\r\n=XYfY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEphBxgqd+AMLdYVbyd7OLyC+F1nkAOl+fF/fovyFQ5PAiB494m/nX8Bl+rOj0M8K76uLFoDT9QSYo/E3pLtp83VIQ=="}],"size":5752,"noattachment":false,"key":"/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/octokit-pagination-methods_1.1.0_1541700573082_0.7670260291234887"},"_hasShrinkwrap":false,"readme":"# octokit-pagination-methods\n\n> Legacy Octokit pagination methods from v15\n\n[![Build Status](https://travis-ci.com/gr2m/octokit-pagination-methods.svg?branch=master)](https://travis-ci.com/gr2m/octokit-pagination-methods)\n[![Coverage Status](https://coveralls.io/repos/gr2m/octokit-pagination-methods/badge.svg?branch=master)](https://coveralls.io/github/gr2m/octokit-pagination-methods?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/octokit-pagination-methods.svg)](https://greenkeeper.io/)\n\nSeveral pagination methods such as `octokit.hasNextPage()` and `octokit.getNextPage()` have been removed from `@octokit/request` in v16.0.0 in favor of `octokit.paginate()`. This plugin brings back the methods to ease the upgrade to v16.\n\n## Usage\n\n```js\nconst Octokit = require('@octokit/rest')\n  .plugin('octokit-pagination-methods')\nconst octokit = new Octokit()\n\noctokit.issues.getForRepo()\n\n  .then(async response => {\n    // returns true/false\n    octokit.hasNextPage(response)\n    octokit.hasPreviousPage(response)\n    octokit.hasFirstPage(response)\n    octokit.hasLastPage(response)\n\n    // fetch other pages\n    const nextPage = await octokit.getNextPage(response)\n    const previousPage = await octokit.getPreviousPage(response)\n    const firstPage = await octokit.getFirstPage(response)\n    const lastPage = await octokit.getLastPage(response)\n  })\n```\n\n## Credit\n\nThese methods have originally been created for `node-github` by [@mikedeboer](https://github.com/mikedeboer)\nwhile working at Cloud9 IDE, Inc. It was adopted and renamed by GitHub in 2017.\n\n## LICENSE\n\n[MIT](LICENSE)\n","publish_time":1541700573261,"_cnpm_publish_time":1541700573261,"dist-tags":{"latest":"1.1.0"}}