{"_id":"@cfi-notebook/page-map-helper","_rev":"2-9346d28db61871e81a298df2ba7c4848","name":"@cfi-notebook/page-map-helper","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@cfi-notebook/page-map-helper","version":"1.0.0","description":"## Description","main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/cfi-notebook/page-map-helper.git"},"contributors":[{"name":"Michael McCracken","email":"michael.mccracken172@gmail.com"},{"name":"Ryan Burnette","email":"ryan.burnette@gmail.com"}],"license":"ISC","bugs":{"url":"https://github.com/cfi-notebook/page-map-helper/issues"},"homepage":"https://github.com/cfi-notebook/page-map-helper#readme","dependencies":{"js-yaml":"^3.13.0"},"gitHead":"ee9ac1f80553792b4d2be08e9639c52ab774f3b0","_id":"@cfi-notebook/page-map-helper@1.0.0","_nodeVersion":"10.11.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6xiHQFYA2M6RbSI6J17GaCHkXdK9+fYOf1DJ+MqRP1l7KYXWYKcqjMGFJ+dsIzWYRRFZifWmDo5jdgeqrdbRkw==","shasum":"be734fa5e19a5aaafd61810bce72be22a09dcf3d","tarball":"https://registry.npmjs.org/@cfi-notebook/page-map-helper/-/page-map-helper-1.0.0.tgz","fileCount":3,"unpackedSize":2039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnEcmCRA9TVsSAnZWagAAOrYP/jKFwfl2yAlXHthoQlIZ\nEeRnp9HgBf2isiwLvmsDILabHXebQX6NtibzAJcvV+Pyp18GWgSDA6mtlBhS\nZO/KjOPfsJgKvtbD7S6s8gaqS/roJom5yVE302/ygQgzgF2daNB5iyfqNs7x\nJ7BetkJ2732xmSLBVKhh/tvDTHl7vcpidBtsDUqP+/86hcS89qiA+Zx2pg+c\nmzlS2BeG0V6TLH/9cRctOAL02FLV5nGsTzchP/QZxo0B8HludRrHzAO/m44i\nERr079F+F9gUPS193pamfp9AaYn28dlOshbnFcSyB6DBrFRKo5sBRXA+kA0a\ndp3rmCg78Xw9n0w8cxgW0+AGZ/jioAhOdVKL44bqROaAz/h1AmARKfjiin2N\navcbcU6lGMu91JOWljjh2+dKgRJDvmIR8Nk3uyc48nJDwghaVhSpMSQ6mcla\ndW11oYJAVubilejdMUlfy1rCTel5kktseOnsMts3STtPt4ezlAGPVLhLXkr5\ngz6TmpCx7b7oaaPmjWC7PXCX3YD2ntD6dO6gOxaoA+NdBtQ1axJTVrYPHjsc\n0wA33oIIx0gYLlw1B3Gs5O0LYcq/w6JUlSiroqEBNz1ofjR+P8Ih74PEIuIm\nBMm7DCUc8PATEfLPcxlPhxjMaylCPmhs7K2vVnyb7TmlzcFDQJ9+yI6D9KEd\nNFE9\r\n=nqNW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDNCnSCbiwdxargyiLzEC04YJZh3GO2Oy6C4gW5TwEtAiEAxlTzY0Xm7cWTN7FoPM71eIHZKNEezfcjZaFVP5sGMIo="}]},"maintainers":[{"name":"michaelmccracken","email":"michael.mccracken172@gmail.com"},{"name":"ryanburnette","email":"ryan.burnette@gmail.com"}],"_npmUser":{"name":"ryanburnette","email":"ryan.burnette@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-map-helper_1.0.0_1553745701806_0.26335547940697746"},"_hasShrinkwrap":false},"1.1.0":{"name":"@cfi-notebook/page-map-helper","version":"1.1.0","description":"[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/cfi-notebook/page-map-helper) [![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@cfi-notebo","main":"index.js","repository":{"type":"git","url":"git+https://github.com/cfi-notebook/page-map-helper.git"},"contributors":[{"name":"Michael McCracken","email":"michael.mccracken172@gmail.com"},{"name":"Ryan Burnette","email":"ryan.burnette@gmail.com"}],"license":"ISC","dependencies":{"js-yaml":"^3.13.1"},"gitHead":"85a9e37bd20e98e91180563482ed93e917366369","bugs":{"url":"https://github.com/cfi-notebook/page-map-helper/issues"},"homepage":"https://github.com/cfi-notebook/page-map-helper#readme","_id":"@cfi-notebook/page-map-helper@1.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ulHnJRsm5dIEMHSCypvzDLUhZ+qOmLXiwTSBQyWCzwysg5yH4I1p+JqwEd13Htxuvc2Fo5QyLL1pE6FetiqL0w==","shasum":"8d012f4ecdc29efc8cbb1c9f893df144d23dcf3c","tarball":"https://registry.npmjs.org/@cfi-notebook/page-map-helper/-/page-map-helper-1.1.0.tgz","fileCount":3,"unpackedSize":2260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdn7C8CRA9TVsSAnZWagAA48UP/RrIVi6Crn0LT58RcTAq\nU4NGcC5rpPLzP53fKfrrJJyCVzz/G8U6VnFoTqvy7y0ZcLWEgsho5nj6iqIf\nVO6F8kG+fPZOe14MdlioN94zA67kjxHWutqzDh50k1RVt/xTyLNLFV/Ig2w5\n9N6BrauHRpVD971TD64z821kFNctMeBe6+ydNN5ypY8gxAD2cSCNNcBrWCQ2\n3C2gdfuWqHRQ7gOnGUmDBqnqI90fowYhVh/bMxDmwS/G4bO51oGh3mHSV/j4\n28HsXYaMNIzp4qPkWDRVDOO2hn2BgYVWhb2WUVWtvozj8gS0irN8MIjbEcPQ\nzZGix7eQ4Wgz2qK29QeQ2tGfkNaF1MTVxa4z272NmIJT5RfZTmk2xH75gVzQ\nCTRx1hAm+MqcwIf+1qldSHQEtyOo6noNZIuoJmd9Z6fC9VDLr/6g7A8VZP3Y\n4e2IMvFC3HbXrQv9EJffekgNwXhYjSDXzczT/zZKFkvoq6JxUmfdltQ5G1Cj\ndOCJL5YNykEXAROLZE7d9p0XDdS2bG+I6zL7Ryi7Q3kxhmUHSFU4EE5zVBJ/\nl8pxhHV80T2hnAIggsuanzBc/pkoPOht7xs4bGC4CAgQGeeKI+PbFqFluKwH\nHwv7qAhL58dael3a8LUGXX4XBTgKgjRXKgFwoKweC5GuuYANkRr3+51fUex1\nMQN3\r\n=9puE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID39/zg7roIlhSRDPC6eAG8iy7X0SlsLCJkSbkLZfvLiAiEA5noxxGSeklrflS1R7TO6MgG+BPXiPUiBl9/bcQjiFjk="}]},"maintainers":[{"name":"michaelmccracken","email":"michael.mccracken172@gmail.com"},{"name":"ryanburnette","email":"ryan.burnette@gmail.com"}],"_npmUser":{"name":"ryanburnette","email":"ryan.burnette@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-map-helper_1.1.0_1570746555600_0.3138815639576642"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-28T04:01:41.616Z","1.0.0":"2019-03-28T04:01:41.925Z","modified":"2022-04-04T22:23:42.050Z","1.1.0":"2019-10-10T22:29:15.806Z"},"maintainers":[{"name":"michaelmccracken","email":"michael.mccracken172@gmail.com"},{"name":"ryanburnette","email":"ryan.burnette@gmail.com"}],"description":"[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/cfi-notebook/page-map-helper) [![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@cfi-notebo","homepage":"https://github.com/cfi-notebook/page-map-helper#readme","repository":{"type":"git","url":"git+https://github.com/cfi-notebook/page-map-helper.git"},"contributors":[{"name":"Michael McCracken","email":"michael.mccracken172@gmail.com"},{"name":"Ryan Burnette","email":"ryan.burnette@gmail.com"}],"bugs":{"url":"https://github.com/cfi-notebook/page-map-helper/issues"},"license":"ISC","readme":"# [cfi-notebook/page-map-helper](https://github.com/cfi-notebook/page-map-helper)\n\n[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/cfi-notebook/page-map-helper)\n[![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@cfi-notebook/page-map-helper)\n\nA time saver for building reference maps for `1-1` style chapters where we know\nthe page on which each chapter starts and need a reference to each page.\n\n## Usage\n\n```js\n// build.js\nvar pageMapHelper = require('@cfi-notebook/page-map-helper');\n\nvar chapters = [1, 2, 3]; // chapters\nvar startPages = [5, 20, 32, 42]; // start page for each chapter, plus the last page of the last chapter plus one\n\nconsole.log(pageMapHelper(chapters, startPages));\n```\n\nThis demo prints output that you then copy and paste into your content file.\n\n```yaml\n- 1-4#8\n- 1-5#9\n- 1-6#10\n- 1-7#11\n- 1-8#12\n- 1-9#13\n- 1-10#14\n- 1-11#15\n- 1-12#16\n- 1-13#17\n- 1-14#18\n- 1-15#19\n- 2-1#20\n- 2-2#21\n- 2-3#22\n- 2-4#23\n- 2-5#24\n- 2-6#25\n- 2-7#26\n- 2-8#27\n- 2-9#28\n- 2-10#29\n- 2-11#30\n- 2-12#31\n- 3-1#32\n- 3-2#33\n- 3-3#34\n- 3-4#35\n- 3-5#36\n- 3-6#37\n- 3-7#38\n- 3-8#39\n- 3-9#40\n- 3-10#41\n```\n","readmeFilename":"readme.md"}