{"_id":"@0xc14m1z/express-pagination","_rev":"7-e4c12a5d4cd595ece996198fe80d59de","name":"@0xc14m1z/express-pagination","dist-tags":{"latest":"1.1.7"},"versions":{"1.0.0":{"name":"@0xc14m1z/express-pagination","version":"1.0.0","description":"Configurable ExpressJS pagination middleware.","main":"lib/index.js","module":"es/index.js","scripts":{"build":"nwb build-web-module","clean":"nwb clean-module","prepublishOnly":"npm run build","test":"nwb test","test:coverage":"nwb test --coverage","test:watch":"nwb test --server"},"dependencies":{},"devDependencies":{"nwb":"0.23.x"},"author":"","homepage":"","license":"MIT","repository":"","gitHead":"d8995f932fb8ecd99bd938f54dfd66c84df7da12","_id":"@0xc14m1z/express-pagination@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"dist":{"integrity":"sha512-vq5aQAb+2nGkU76rSBYmfYSBEgqj0DKo9ubzhUs8TqKAv5WbVFl5l8WYZBb4K03qZNBSbXyXce1fDx4Ooo2sxQ==","shasum":"1dc3064d185d8e1ff1bf0fc4ead7850b6a97256b","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.0.0.tgz","fileCount":5,"unpackedSize":1917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVKUoCRA9TVsSAnZWagAAy4kP/03d3hi9JI+s6RmYeuMn\ntXTx8fQQ3eCx6wlZmwObH2XkF7oDKPqWBM8y77jNW4nP71APGsuEfplPzwVt\nNb/36wkFhzCOL7qf/PNGN9yvxkNp6uLbrOa9awsh98HgBKybTfgZj5P8mQjd\nuvct0uHPyi/NNVXeOX75efKQNVp1Cdj8K8a9W5Debv+D9XZTczhAV5B4/dYs\nHTbJKwoG+LzyT3vlc2ujBJj9qe8Y71dHdNuHf5c2L412RqT6hXqB9FeiZhF5\nVXYNaTWuntUP9ZQr+Eew79p2A+Os5R8fZqu5OcDlVIskpdrEEew0KO9y8XSX\nbJenNYd4Jkz2dlKudMPl6iHZVc9beVUAoc8vtHByhKRPH8y679eOoTo1Apvf\njpcnvsFZpZVTsjWrAm1QsbOrJoXcpWMysxHXRS8S5gUkj3aqbJ3k+sS5bnIh\nDT5bsSXhSa1dINQs0NX0wUL/nzKPh9o8Y9dBrqsWPNrYvyXz2y4DKIRsJON9\ngqqc6AGvm2SsbpZPKo0CU9N4BJZWyF0I4k+rB7PfhsJlD6lVId+WfAb2ZysE\nfsuWrUgs7eiom8XBWlKQ2RMfGdriFefkT3KO3LaHzhkh2ThWon0F41jFGPUZ\nzD+p444PqYsJEfxsGip3Hd+GdMMzYJB9KxCkoc/VBjW//Y+DhjVKEZBC3I8I\nlBZa\r\n=TOxc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHRNshNrmMSwnGPcOfHdgUEt54idzZcHpIJ7ymz8D99AIhALThlMcGyb1Rtn+02reNH1/oPeL9tpAxLpbYfzfVfJpj"}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.0.0_1549051175450_0.8271825506806849"},"_hasShrinkwrap":false},"1.1.0":{"name":"@0xc14m1z/express-pagination","version":"1.1.0","description":"Configurable ExpressJS pagination middleware.","main":"lib/index.js","module":"es/index.js","scripts":{"build":"nwb build-web-module","clean":"nwb clean-module","prepublishOnly":"npm run build","test":"nwb test","test:coverage":"nwb test --coverage","test:watch":"nwb test --server"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","nwb":"0.23.x","sinon":"^7.2.3"},"author":"","homepage":"","license":"MIT","repository":"","gitHead":"f131047d184918a75e39822bf500f77fd653f29c","_id":"@0xc14m1z/express-pagination@1.1.0","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-o1Tp6kzotdI5H1avh8Al+GI8s9iMUagxiwhapbUuZP+1T019/B8ZLMcYqqxK0VyNoLQnFLGuHunegrVla/1V6Q==","shasum":"fef46add53bcde82f8069e43026a5590162066ee","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.0.tgz","fileCount":9,"unpackedSize":6953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVNQrCRA9TVsSAnZWagAANhoP/2uNhpxcrp6tJufbXDhp\nSmzVsNA/mCn+ST/DbytdvqEHzq0NDr2hruRqrmtXNwZ09S7aXyWpM4dY/zrZ\nvWWiq8qHVyjzRbUhki+xQxEBKpV17Fccf/3QqA/vyEiWIGfygtq53EVTknEP\n3Nb9xEgG5dxeR52jbpB4Cx8HvPJZnaH8cFdOGFX/vJUkNVKDfBO5Sg42jeM7\nC9KiDSTJd/2RIJ74x2TZJH3BDFfjyjqi9veikWGlxkYJyihG31gcCz5QSDVj\nG97IW6jVG4Rd5FlbaEZDhsdyMYHEiLWwLsA600CYb9Q+zIhFDVEf2CBusJuO\nJVF8Bw76k7tiGE0ykJLerRXbtwNHG0Y70QDIZzAWIidfRfHC0tsy3dceKAO1\nIHqf1Jj8qmMHJZtgQp0Lk2GqJUqeUvMn64+cNKYgI4MRDUlN1XrCotzFU90t\niBK9FrkUmsArTGOWqBzG7Esy6aKjGEAkWQkZB0ZZ7xrjML7qjs2eTeSHwEmY\nBBNhJ6pD4b7x/1z231f+ODbZi4tOhqOuU9F6+k1TibyQ9QJklJT67TF3HGfg\n1mwxLmrNGx2+9qKt6KXkHIMwjIJQDwgQqNblE8mxogJ5NNoUVg2aekOL8RJX\n01uVqbkTN/YE4Ikcs6Uj1lLnOARnWvPHBuM0KHf8yj1SgS7gSy8Kwwkle0GV\nlVsb\r\n=+xBx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDzyWMmrolPQD0zqfvVskVEjcGE0x53N6M1wfQVXseWMAiBpzu0k30ZE3x9VXGcbtEAkvYEGUTrPlyWaJEVsOoy67g=="}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.0_1549063210787_0.7866079326234685"},"_hasShrinkwrap":false},"1.1.1":{"name":"@0xc14m1z/express-pagination","version":"1.1.1","description":"Configurable ExpressJS pagination middleware.","main":"lib/index.js","module":"es/index.js","scripts":{"build":"nwb build-web-module","clean":"nwb clean-module","prepublishOnly":"npm run build","test":"nwb test","test:coverage":"nwb test --coverage","test:watch":"nwb test --server"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","nwb":"0.23.x","sinon":"^7.2.3"},"author":"","homepage":"","license":"MIT","repository":"","gitHead":"e7fa4d5f5a199bcf132f4e7d35f607f7550d7308","_id":"@0xc14m1z/express-pagination@1.1.1","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-P+5nmz6E/lGBiPNU3EeuDRLa60OXjyfRM0STWFpPIFTpMDIe6FwuKmbS9lPr5aNWZ/PDonNgAh27zWV4YR3PHA==","shasum":"52e928094a90a6d7edf42e1aeb117e2289a0dd2c","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.1.tgz","fileCount":9,"unpackedSize":6955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVNaVCRA9TVsSAnZWagAABhwP/jE604YvYwAL+WLLFpS5\nRlkzTzKviPUMrLh9WuwXTyV6Gmar1NW9C0evhZgJ0jcQXC5LnjvTN9Y2vzDp\nHX6XddGFu/6SOAxyGl5hjTdZMxbWMLdmwvScmhmDDmC4vh9TbZ8KznqJyOEp\nu43k6QbrR/6JH5/hFiRTp8S4g7tFucI9V6oziRJPAgzloSUPuLNDSdSqRff5\nNsOzgLVreu8vef/9UF34nVOMek8hqbHD1Pfmx3mNuSqxN4+ZwEB+sfUGQIaZ\nWM/jxWvEH2pryo6Qz2RCbXDiRY3WbV+nMHQaJDzIpY/SsV+csv0nlLfSpRXY\nGrg4qD3uoIXoj4NvsM+8/MvwSugHiZjv/uSp1R0c8ZRGSUCERJ6Vo8fU7yw6\nNSuIRhUpzINpqoXKhobTChB2IWyAJlWsfJDIjC4S4Ni36yBjVxDYbsn3x48J\nvNixQT3yC8IcmIIVSls4p1xnVwwYZqWmyjDN9ddKnYUFMumaG9i5VxSLWy9C\nY/KEdRpsktWSe2ZAsYnaxBw9OOBt4X1IFZMUf8s5pm/ydm8uP65z2EZPmhY9\nvCgzAw3pMkzPlJiT6IxZ4EpgreEh3qbemBDOOkcOMNZBfta7SVeuu3ZDAYis\n4kcUqLxsx4/wEqEFiTnXgrQxs1p83t7MCAHQeljl71HHNMnzHUfch5hpmgsx\nkQic\r\n=Y3PI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/Qn10AS/ao1gmbb1+bfgltlfgW80DXnKU4aIWjqD0AAiEAinj2IYbzWB9hKqwcjKCEa5ixQlTD6kdYiHu88EcwqIo="}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.1_1549063828646_0.6716650769813184"},"_hasShrinkwrap":false},"1.1.2":{"name":"@0xc14m1z/express-pagination","version":"1.1.2","description":"Configurable ExpressJS pagination middleware.","main":"lib/index.js","module":"es/index.js","scripts":{"build":"nwb build-web-module","clean":"nwb clean-module","prepublishOnly":"npm run build","test":"nwb test","test:coverage":"nwb test --coverage","test:watch":"nwb test --server"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","nwb":"0.23.x","sinon":"^7.2.3"},"author":"","homepage":"","license":"MIT","repository":"","gitHead":"5a0fdf7af2fd738ffa4a485940cc498e62ed3f71","_id":"@0xc14m1z/express-pagination@1.1.2","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-rFjuAUUTGc2DMJHbuSrmq/nS4K+szXz5OywpuFvvK3VYgMOXQB7nwaa+1O3f7S4dBCps36FhKXOXCyVqQmlH6A==","shasum":"3815ece45cbb39cd022ca826919395a6dc49e58c","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.2.tgz","fileCount":9,"unpackedSize":7559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVNkFCRA9TVsSAnZWagAAMwkP/Ahn5ama4bgombht+3af\nNVMhaAM4FzY5cW4c5kVpk0BzOxWDM+8gkrr6DqjbYJBydq2sIL5YOeVnqkBY\nEMcyz5kzpTGQlj4m2H7e+0WqWHPMy5w/JdFiTn50ySCaQlBtoKueuEGwjLqt\nwRewdELf92Gu25BOcg/AJ37mu7QvFNdRjDtiCnAxgkbJn0wk7QBcaZnb3AMZ\nn/A0SktBp1d3ZQEBKvPKIpD+whDYqWOwgkhEyHfrRQBZywxES2wcuXeOlWd5\n8keN1igeM34c6pDAKoUQ6psXMiLY0YVFXK2eHG3kAnPj+8DYnukJcG8M8aQj\nM+0l+x4rh8y3FuVeCXzwTDAJgMuBzXVcLgYxYUgDbZOLjlPCaN0R88RFK17Q\nTMvSzehjJMeRHnKnT2h9Kc+Vf9XBmE4MiQKWASLVknPlGKbjEUxpLi+dAg+D\neZGxXefN+FzlFze1Mqmk8tnb8MiuVWcBlt3/JuBShiwgJeJV64/JQ41qDSOI\nzeN1baY7/JjDTL9+L3p3UsNQUd2x8Kui5e6wq39jBpaq/NYdVn54vjzOsnXj\nVeUwN2SIzOxPZypC4QSMfuZ7d+zOZnftJe+QRKhdxDQFaKOq5lCPLWp6SG39\nG0o0GV/MXXAIrQb5y2fWHi3KHowvmob7Bf/+2y+vrJsBWZeYDkk07aL75lYj\n0WeO\r\n=1DeA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0mmZ4IquvMvdhAl5O26uDXnqJXoNLz0i1wsK2QWd70wIgO4VOrMjlg+k1lLBykeWN5UIeDp8DAThQRClGv79t84g="}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.2_1549064452837_0.09312360129151553"},"_hasShrinkwrap":false},"1.1.5":{"name":"@0xc14m1z/express-pagination","version":"1.1.5","description":"Configurable ExpressJS pagination middleware.","main":"src/index.js","scripts":{"test":"mocha --exit","test:coverage":"nyc npm test && nyc report --reporter=text-lcov | coveralls","test:watch":"npm test -- --watch"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","chai-http":"^4.2.1","coveralls":"^3.0.2","express":"^4.16.4","mocha":"^5.2.0","nyc":"^13.1.0","sinon":"^7.2.3"},"author":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"homepage":"https://github.com/0xc14m1z/express-pagination#readme","license":"MIT","repository":{"type":"git","url":"git+https://github.com/0xc14m1z/express-pagination.git"},"gitHead":"9345623370ee3287da166528bdeb04dd77388bbb","bugs":{"url":"https://github.com/0xc14m1z/express-pagination/issues"},"_id":"@0xc14m1z/express-pagination@1.1.5","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-aLB90Hqx72Ul2bqrkXCxb3FuKF1CTLqhjiTrX4PYytaeuj6g3psPwAf1MbjUJBea0vapWWh4dPUc5sBwPdBumw==","shasum":"40047a4e3be2fbeb1fdb8e7d19888e1739de0f78","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.5.tgz","fileCount":12,"unpackedSize":20040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVzqdCRA9TVsSAnZWagAAXHgP/21QxwGompc90ayZHQM5\nkKpPRoXXTHSyAlz9LjFxnNlSA1u984gFHgVHQZuBoF1UGp4PCXaavAe+UQYY\nfYrjALPWE2AUk0WwK7bZ44e6/v5W/Zv2blmTbPTVz+xo5fLxacGIF9HbEI5q\n0Twi8H4JTCtX87mRG3MWkGKsPIf+PgDqKyQKrnmRchaQrLrWHdotp58Td+4b\nmxMFyOCBHPFWuwx5nqNsZ9rh4Nr+qLje7fTiFb0I0h/xK39CEi120QlQVayh\nRiHsHdgm86ZAGJrg7mxxpALKKfaKDX0EeRuUBs0xT4JhcSJ67v4q6cKT8C0x\nPUU1/JjztD8ML4hBXmk0Xy7BqOMQ6CJkZE09rQvtSR63ThAdhbbnfhwTGff2\n7q6ZlRSlobFcpqa81eBX/10WnR5VKoB4NDeJ4CqqSKZw8Sk55XMj8P1m3lLx\nVF66JAwV4jtDPeULpl/Tq11YOggegBqP5vUQIEELVfp36QUgzXBSqx3Uhinr\nXb0h8UhRtgxOWksKV0f1vEkpV/jW4G/oSHZr6m13/wc6RROQhmUsrVDNOPKQ\nxTTz0CR6j8ObWVRNJ7J+nC3Sb5HtlfNcNH7g3+4OhPMk3dxqRW1ay6Jy5cnk\n5RThy+8lPocoTo7wcxOw1MKAwKdb8R2wF4w8CzUuwKGabXiLNxg9AS7Rzvu9\n06Z0\r\n=MSDP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFM2hT1o5BxnZ3SSzQOZhdeuPBF3eD0RIIKKwMXZrNFGAiEA86et4C77clfGa6i82Ow1ZDd2FaUz2C8uEAx9LhiFYRE="}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.5_1549220508296_0.6608508285672001"},"_hasShrinkwrap":false},"1.1.6":{"name":"@0xc14m1z/express-pagination","version":"1.1.6","description":"Configurable ExpressJS pagination middleware.","main":"src/index.js","scripts":{"test":"mocha --exit","test:coverage":"nyc npm test && nyc report --reporter=text-lcov | coveralls","test:watch":"npm test -- --watch"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","chai-http":"^4.2.1","coveralls":"^3.0.2","express":"^4.16.4","mocha":"^5.2.0","nyc":"^13.1.0","sinon":"^7.2.3"},"author":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"homepage":"https://github.com/0xc14m1z/express-pagination#readme","license":"MIT","repository":{"type":"git","url":"git+https://github.com/0xc14m1z/express-pagination.git"},"gitHead":"b98d1b6cdb52a28b474a1c286a47ff5d1c8b1558","bugs":{"url":"https://github.com/0xc14m1z/express-pagination/issues"},"_id":"@0xc14m1z/express-pagination@1.1.6","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-eUseRDmkRCd88gZOQ9ZRpyz3KBwBmdFIGoWoJFW9cc2SaVZ2K/1F/eT+GLNCGPDzTjMyRNQXrKI6qy4zXMh2UQ==","shasum":"9fa855a3bc7e4e8735ca99ee5f7e1d4fa0cfee25","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.6.tgz","fileCount":12,"unpackedSize":19847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcV1LzCRA9TVsSAnZWagAAawUP/i+q8MTbfcMOKr5m2vcp\nb54kmPL4PdQcEyoF5vvILuXlEfGn4BetFnRVE0dRcHypxR0Pi/QgxHSOaGMf\nFv06NGFfHN1psOI/szmoZJV5LhjdERo7fFwLWbyFaxUGkdAR2LWb3XSccyBe\nXDOfyLRRQH4MdJxDrvOTTNFLwAOzv9AdbM4CekB5nZwDdxCCZ9dihAN8YRqB\nvsuWAy+dlLxMyCN1fIEcq3LipXRjMtbu1IePd4WnlW4gK60Ks8geZuWxtCC9\ns27Nr/zuQdp2SKVpAWDg1ypvMELbzPl1f4As/lRplcnf92LfKN9hY0zJwoK9\nrDquMhNREYBhKgpF/Hj/EL2w7/vu8dq4jAjtJR1NBhNN2tkYVDVjGCDnBaEi\ndyJHUF7vTk55p8TCYCgXCf871KtMBZLt3lNAl145AIjPna/1CmPHaQNm4q2T\nAboMI5eFgMCiWfhZP5k2bW1S4wuUU+x5C/KrO+aPhJrpSEdBstS4eK0WwxvH\nQo+x9yykXl63HiaCyqb5CxIVI+B4KhjOlUDcxSCPDRT8sIMcxHuYjvFpasdy\nTyf6WBTZIv/MDDPv5E3D9amuQ11uhOehcPEsZ/FMFHtwNVbVnazCBCt1dTYT\nwIyXmie7EckjVuKVTSTREmWgNOkTMHuccywXNX9poCxNj4o0wqEFUAK4PkEi\nkoEF\r\n=3lAA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjQ1y6NMuZs4OQGE1rwYudDrC+NKfNlmQ7yUKRWcvLvgIhAJM7M+5Aa4xxPR7/brhePENyvW4TXxYty5j20CmAkrZ0"}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.6_1549226738350_0.2078078393675753"},"_hasShrinkwrap":false},"1.1.7":{"name":"@0xc14m1z/express-pagination","version":"1.1.7","description":"Configurable ExpressJS pagination middleware.","main":"src/index.js","scripts":{"test":"mocha --exit","test:coverage":"nyc npm test && nyc report --reporter=text-lcov | coveralls","test:watch":"npm test -- --watch"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","chai-http":"^4.2.1","coveralls":"^3.0.2","express":"^4.16.4","mocha":"^5.2.0","nyc":"^13.1.0","sinon":"^7.2.3"},"author":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"homepage":"https://github.com/0xc14m1z/express-pagination#readme","license":"MIT","repository":{"type":"git","url":"git+https://github.com/0xc14m1z/express-pagination.git"},"keywords":["node","express","middleware","pagination"],"gitHead":"30a610993962be3d98a40a9ef6fa5b5fcfca211b","bugs":{"url":"https://github.com/0xc14m1z/express-pagination/issues"},"_id":"@0xc14m1z/express-pagination@1.1.7","_nodeVersion":"10.15.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-Pek6KutOYH1fVXI98WXeh5v6DUGk96mKB4fM7y2cmJ6HV/PEogIA/QzAz+CIqTRDvFpY2QUgavnc4zgFssrntw==","shasum":"f651ae299d9d9f400826fb2ed073232464c3fce1","tarball":"https://registry.npmjs.org/@0xc14m1z/express-pagination/-/express-pagination-1.1.7.tgz","fileCount":12,"unpackedSize":19930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcV1WqCRA9TVsSAnZWagAAhkYP/RuZhqmHfmnq8C1l+Qdk\n+RH19ahy/UY0vIhae1FO3uPPR6vcsmRWrW29/EsawM7vMSlFuD2YUHPdjG9+\nLIr7hNIlvPPWkoZEf/xf1ZBdj2B0HwomeTHSiZnZlXTP0Ljt6Dk/sch7hpRw\nGKR7xOgGLTRcGyHmdBnYMVjcTu6HtFG81wT53NCtWCpElZacocI6GUprt8ct\nzlmAWbBfWFT8udIRd2bNRJhto5A5U5SLd7t3QbeRHarWADZSiQVX2IJUYcDe\n72i5FnPVwhGscly4wP4wRvfbFqZMDvrJMCceatm1dBa1SFCJ2Y4wnKV/wA4v\nUgjeQX785Jnk0KWhSOZ3uIT+SeuwnLJeSqgs7euQ6eTvjPySbC36C9shcyMs\nNCPPLfJMD/qTfLMV6PIuRARX4EjLdc9W1UiMEoUO0D/ZLUxVBszyPXcgquQO\nlF4maqkY3p/YzvGIPk4Dzi2eTSsA72ewE5OK2L79wzohyJ1v42Hb1YP2q7RC\n5nIouGz2qg1c5nKu/Gw0QuMgdfnqIsrpeSvAWMufUd0Fy2eU4xf23LDb3z9q\nHWlu88aFupFDUIn5B1lHkcQiNXnignaPxHIMnUqF/+3dEmebiXmXxq/5eYaT\naWee287a/OfuVst94LsXnl0HogAkd4q5KnyPJ4X2Hcp3IutY6FOmRM6Z01cg\nBmZG\r\n=P5LO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzDWmOOZwvqPOaoRopIq5eb+txK90zGSgTDFakQj22wAiBUeE7Ijekwjc7yoa1ddBWMIFhh0GM6kfz8LgDwkzsQ7w=="}]},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"_npmUser":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-pagination_1.1.7_1549227434115_0.6494004470430712"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-01T19:59:35.449Z","1.0.0":"2019-02-01T19:59:35.559Z","modified":"2022-04-04T10:28:04.815Z","1.1.0":"2019-02-01T23:20:10.913Z","1.1.1":"2019-02-01T23:30:28.825Z","1.1.2":"2019-02-01T23:40:52.928Z","1.1.5":"2019-02-03T19:01:48.425Z","1.1.6":"2019-02-03T20:45:38.653Z","1.1.7":"2019-02-03T20:57:14.281Z"},"maintainers":[{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"}],"description":"Configurable ExpressJS pagination middleware.","license":"MIT","readme":"# express-pagination\n\n[![TravisCI][build-badge]][build-url]\n[![Coveralls][coverage-badge]][coverage-url]\n[![CodeClimate][maintainability-badge]][maintainability-url]\n[![Codacy][code-quality-badge]][code-quality-url]\n\nConfigurable ExpressJS pagination middleware.\n\n---\n\nThe purpose of this package is to simplify handling of pagination for ExpressJS\napplications. It can be used as fast as possible as shown in the [Basic Usage](#basic-usage)\nsection, or it can be highly configured to perfectly reflect your application\nneeds.\n\nThis middleware allows your application to read two parameters for pagination\n(the current page number and the number of desired results per page) and setup\na configurable property in the request object that gets passed to\nyour route handler.\n\n## installation\n\n```\nnpm install --save @0xc14m1z/express-pagination\n```\n\n## default behaviour\n\nThis middleware:\n- looks for a `page` parameter as the current page number;\n- looks for a `perPage` parameter as the desired number of results per page;\n- sets a `pagination` property on the `request` object;\n  - sets a `page` property to the given current page number or fallback to page\n    `1`;\n  - sets a `perPage` property to the given desired number of results per page\n    or fallback to `50`;\n  - sets a `from` property to the number of results to skip;\n\nAll of these properties can be configured as shown in the [Advanced Usage](#advanced-usage) section.\n\n## basic usage\n\nThis package exports two convenient methods to be used as ExpressJS middlewares\non route or application basis.\n\nIf you don't have special needs, you can just import a middleware and use it like:\n\n```js\nconst pagination = require('@0xc14m1z/express-pagination')\n\napp.get('/first-route', pagination.add, function (req, res) {\n  // your handler here\n})\n```\n\nNow your route can be called as: `/first-route?page=3` or\n`/first-route?page=3&perPage=30`.\n\nIf no `perPage` parameter is given, the value `50` is used for it.\n\nWith this setup you'll have pagination information in `req.pagination` as:\n\n```js\n{\n  page: 3,\n  perPage: 30, // or 50, if this parameter isn't given\n  from: 60\n}\n\n```\n\nIf you want to change the default number of desired results per page, you can\nuse a slightly different middleware:\n\n```js\nconst pagination = require('@0xc14m1z/express-pagination')\n\napp.get('/second-route', pagination.addWith(25), function (req, res) {\n  // your handler here\n})\n```\n\n## advanced usage\n\nThe default export of this package is a function that takes a configuration in\ninput and returns a middleware generator.\n\nThis middleware generator can than be used in your application:\n\n```js\n// customPagination.js\nconst pagination = require('@0xc14m1z/express-pagination')\n\nmodule.exports = pagination(/* custom configuration here */)\n```\n\n```js\n// controller.js\nconst addPagination = require('./customPagination')\n\n// here the number results per page is taken from the configuration\napp.get('/first-route', addPagination(), function (req, res) {\n  // your handler here\n})\n\n// here the given number results per page overrides the configuration value\napp.get('/second-route', addPagination(100), function (req, res) {\n  // your handler here\n})\n```\n\n---\n\nThe default configuration is:\n\n```js\n{\n  input: {\n    page: 'page',\n    perPage: 'perPage'\n  },\n  output: {\n    property: 'pagination',\n    page: 'page',\n    perPage: 'perPage',\n    from: 'from',\n    defaultPerPage: 50\n  }\n}\n```\n\nLet's say that we have an application that receives paging information in a\nshorter format, for instance: `/paged-route?p=4&pp=30`\n\nWhere `p` is the current page number and `pp` is the desired number of results\nper page, we can set the configuration as:\n\n```js\n{\n  input: {\n    page: 'p',\n    perPage: 'pp'\n  }\n}\n```\n\nLet's say that, for instance, we are using Sequelize ORM to perform our database\nqueries. It allows to narrow query results using the standard SQL keywords:\n`limit` and `offset`.\n\nWe may set the configuration to:\n\n```js\n{\n  input: {\n    page: 'p',\n    perPage: 'pp'\n  },\n  output: {\n    property: 'queryLimits'\n    perPage: 'limit',\n    from: 'offset'\n  }\n}\n```\n\nAnd use it like:\n\n```js\n// controller.js\nconst addPagination = require('./customPagination')\n\napp.get('/users', addPagination(), function (req, res) {\n  const { limit, offset } = req.queryLimits\n\n  User.findAll({ limit, offset })\n  // or even User.findAll({ ...req.queryLimits })\n})\n```\n\n\n\n\n\n\n[build-badge]: https://img.shields.io/travis/0xc14m1z/express-pagination.svg\n[build-url]: https://travis-ci.org/0xc14m1z/express-pagination\n\n[coverage-badge]: https://img.shields.io/coveralls/github/0xc14m1z/express-pagination.svg\n[coverage-url]: https://coveralls.io/github/0xc14m1z/express-pagination\n\n[maintainability-badge]: https://img.shields.io/codeclimate/maintainability/0xc14m1z/express-pagination.svg\n[maintainability-url]: https://codeclimate.com/github/0xc14m1z/express-pagination\n\n[code-quality-badge]: https://img.shields.io/codacy/grade/c5eb6609f4744298bca301b20b11c102.svg\n[code-quality-url]: https://www.codacy.com/app/0xc14m1z/express-pagination\n","readmeFilename":"README.md","homepage":"https://github.com/0xc14m1z/express-pagination#readme","repository":{"type":"git","url":"git+https://github.com/0xc14m1z/express-pagination.git"},"author":{"name":"0xc14m1z","email":"0xc14m1z@gmail.com"},"bugs":{"url":"https://github.com/0xc14m1z/express-pagination/issues"},"keywords":["node","express","middleware","pagination"]}