{"_id":"@benwatsonuk/govuk-pages-plugin","_rev":"16-27b1bae8d3ccc228f1f2478b5aa6d90d","name":"@benwatsonuk/govuk-pages-plugin","dist-tags":{"latest":"1.5.3"},"versions":{"1.0.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.0.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.0.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"a117b7f07dcc383efa91d877d0b57170df08e8aa","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.0.0.tgz","fileCount":60,"integrity":"sha512-3fnt3iqse+d0PEUgM5RMpBTaib6Nef7hDqtIrRUKcYYDxBz88/Ld2lviPPWZ0Ece5DU+7JBfm0HQaxSOkbx6QA==","signatures":[{"sig":"MEQCIB5FIWkR9PSjQ4rhARzbBU8Tu6SshLcyUx/mt1ImjEMIAiBRcdKjJ2VrANLVWNbgAploe19897W/Hc4y9noeHs5ffw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":231200},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"55a1229303e36bccde767214b7df96ff4dd2773a","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"express":"^4.18.2","nunjucks":"^3.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"^8.17.1","cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.0.0_1768496090722_0.05659923608260531","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.0.1","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.0.1","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"3237b21d351b55545206e51b937372e9a3333a65","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.0.1.tgz","fileCount":60,"integrity":"sha512-pelrPw94JwQdAtrGvzwLdBqqjINlVjtmUNfcaB9evwyd0+fb8U4kYxXmnvc40+zvdceYfuzP7ysPe+8HAKw1YQ==","signatures":[{"sig":"MEUCIQClh10pmiHUimRBjBj4qbbI5mnm4uL7llHniQA2FfZSGgIgaGaCULC89PuNkMY2MUqribqw7X+OHe4nkIibiW5AQNU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":231369},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"ae7c66d10a854b6651ecc09f06a951b76305fc77","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.0.1_1768557261493_0.8640275354503075","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.1.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.1.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"ab4a3708db43cb252435ba1306024cd1e58f2df6","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.1.0.tgz","fileCount":82,"integrity":"sha512-pxyLsVqGEC/VDkvlqpYIu7baCwHNznfX7pdMqVVAS0R93fbDLk4SFJLcBJcBjwAFeI5vjhdZX/L78LOgSFi9Ng==","signatures":[{"sig":"MEUCIBvzZmoDas7NRqx3V4+1m83n/pDhR9fEh5L2Ptyx9hxwAiEArMzxmJJD9w7kZf4Ma2oaAIai3JulUTz107fv/2Gm4NI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248514},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"459cddb4e43f0ff1dd6c28dbbe7a12a4e6c973f2","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.1.0_1768636562228_0.7383802869326241","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.1.1","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.1.1","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"59639324c9b7143674cc9a2a83bb4f556a823d93","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.1.1.tgz","fileCount":82,"integrity":"sha512-QbgkGJ+CzVeyfZBcZCxJG8YQV3E9DYflliR7JX/M1r8lGtzQs+abjgRYtrvsgwi5LWS7PXItnYitW9u+s7obXA==","signatures":[{"sig":"MEQCIDMgcKQvsPKVXhylG4rDjClKwPlFpNj1tRwFEVcNyB/aAiB8KRASKrvhYPJlr0IxKzdQT/VsE2plmP9fUVbg8QPC7w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248596},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"459cddb4e43f0ff1dd6c28dbbe7a12a4e6c973f2","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.1.1_1768637750889_0.22279767757387114","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.2.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.2.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"cf6c35ebc59d8dbf6be7966dd61987cb983608f6","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.2.0.tgz","fileCount":114,"integrity":"sha512-Lle4DnbEnHd4xL0COaZYCaNt5EO2pbcH8BNZil75h3MN2e+PyiZhDMMTzq1YKKozfd38QupXWRVz1g0nlZT4gQ==","signatures":[{"sig":"MEUCIFajWDKiSQqqmeo9ri+Q5d8u7AAupDTM2DpZXO4TH7MtAiEA2zZmq+sQxb3c/1G94eHz4KBiekZDHrvLaMak9nkXDWo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":351208},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"cd6963011b6100fedaa34b0d13d7ab37f6c723e8","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.2.0_1768940606340_0.5185859902685008","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.2.1","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.2.1","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"c2e24511c4649c530be7cefa6cff649cfb16c5d7","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.2.1.tgz","fileCount":432,"integrity":"sha512-BLv5fh9bmuVnzk43qjnHsNZ6HAIu7LrbKwOn5TP5OKhyt34LFwQQayOzgZBBuFOSygLcAmVIU0Y6NYquTx4TBA==","signatures":[{"sig":"MEYCIQCAlUI/izxLrS5o4EtL8inWsbOb2KGPCoBtRpqRx4JyCwIhANIZtO/6oo6hxVSohqv+p7g1FESfFYWNYWxwNUtu0xa5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7377629},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"451eae2664fdfc73942d43aa8aaf8479e41e013c","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.2.1_1769013467634_0.4433554096656551","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.2.2","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.2.2","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"5bcfd20d7d4ce608150fdc1022f85c84b8b55bf0","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.2.2.tgz","fileCount":434,"integrity":"sha512-SAE0JDu5Sn2HKW3zj6KKbHmbhLAboOAk2XrQ3jC7igPMmccTG5DcLRKKdwl8sAUQxZZRMbEYRPf8QYFZFNLIWA==","signatures":[{"sig":"MEQCIC9TNk1zct/BuzwxfZbbUf65RciCfHnQY+Qss4YeIG2fAiBYj3H8zR4FysAVL5zBjitKh8sqFmjn+/2DtIiNP/gxRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7235513},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"8e0a367c54b0f327158bd8d6a66ce3ebce18dc13","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.2.2_1769021812484_0.33350484676345915","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.3.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.3.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"0ff0495db6ab1045032c65641b90bb6e2d6a3b49","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.3.0.tgz","fileCount":442,"integrity":"sha512-rbD2IqQozjsxJexYccsdCjr0tURJAE2cyTp9k01muCFSpJ+Ewv9hCwclbza2+BkISR/nMH+3SPioYLN4wCKmXA==","signatures":[{"sig":"MEUCIQDeklLT9mPLtwYGI215RMCLnuzJT4W9oFiZU8Lkjh3WJgIgIWd+g6JhRD7BiBT2dzel+chIatuP7QoJmnnaN7aHikA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7242587},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0a14a487ea2e9478514d3854a935e80e84d35547","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.3.0_1769074382405_0.6944251141829398","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.4.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.4.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"fda5efc284d8467ecbac96756827b979d92be6bc","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.4.0.tgz","fileCount":448,"integrity":"sha512-V5TFnwUr5VLSY0TrpnlaWDel4Fg7yFODap5UDr8dwI1C98BYRiKH2nvVusZRr+XFlzIKMiMiVTJw8fkmy1bcng==","signatures":[{"sig":"MEYCIQDGeZ5NEi/kfKDPqJmOWYO5tWPUpIsIdXz9bQ/OqVnzzAIhAPzu25pSPNOMD6c3s3ZMhpilSi70ZfgQSSHrOq913qed","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7252377},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b266b224657ab283de969a9f09ce75f9f03523ed","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.4.0_1769779470533_0.8333023239087314","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.4.1","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.4.1","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"6cd54ae5d7acadaf0553d1f43b1c8bc050601b12","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.4.1.tgz","fileCount":448,"integrity":"sha512-+gPJQhYDBu+Zh7IKHG1muqEvB4CT2WFmxtPCcAPru50FYKi7vj5Uxy09ctJDlrR0V3UIukrVw5QdYk2qsQ/OOg==","signatures":[{"sig":"MEYCIQDQL1sUTzSzhUasfaReS/7NXFsamSJQTvWgrWXcnJiMGwIhAKeo8I6aFGV5fG9LQvSVWzPhDa/E+ah3xHl7ZBM9QxWa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7252475},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b266b224657ab283de969a9f09ce75f9f03523ed","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.4.1_1773825646482_0.9186593008576214","host":"s3://npm-registry-packages-npm-production"}},"1.4.2":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.4.2","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.4.2","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"a8d2d85effee603425d6d04b64f8888984b15d90","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.4.2.tgz","fileCount":448,"integrity":"sha512-Ucan2sCwX8EVFJLs+Tklqe9wyPWYxRgVdUrTKkPLkEsljURlbIuowhd5cLmwDDARsydVKpjXLxdzutsU54uSWw==","signatures":[{"sig":"MEYCIQCeVU5tiYiv8LjANpK4N1iSY/N+JsgKcqDyxfaltDeoLAIhAJqFzYrle+HRgUqCxwyK6H5oQ8e59OeQXYxnLXiGiRQs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7252453},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"44550afa15ddf6146d1772a5fb71e0d419168660","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.4.2_1773826008658_0.5551868611209356","host":"s3://npm-registry-packages-npm-production"}},"1.4.3":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.4.3","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.4.3","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"c9cc6950bc20ded815683f55707c9614b2b1a21e","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.4.3.tgz","fileCount":448,"integrity":"sha512-erOA5Ksn+3lVNQYZ5zKNicHgtWSr1Xmw09Jg2FgaHS0A66m7wOkl0BH2mS/7REu44MVEb+Ks2Wjblpi5BFTEaw==","signatures":[{"sig":"MEUCIC9vvSOxGLJQs+as4yh4HkLe/GU6yV4b6ODvV50TyrYvAiEA8h8JGtjPswaewvqy8V8joumpq/D0B7HDOYKFPKREArc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7252621},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"44550afa15ddf6146d1772a5fb71e0d419168660","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.4.3_1773826181239_0.2672614010942591","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.5.0","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.5.0","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"584b711b8bc38bb7a8f1d02f9b9e6d4366810db6","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.5.0.tgz","fileCount":447,"integrity":"sha512-BR4TEgSp4w6aC0x2z80OjFJxp5+a29asimUkTsH6Av71rsM142kkCq+zXWZwZA4dvSnhrfiTK0TY81XYMRl5tQ==","signatures":[{"sig":"MEUCIQC/s8petiL2Tx1HG21zN/Q0ZmQsXeyU9d9BEeFceVclqwIgQr713Xfw1RWf3BQRr0TEED3T7SMsnfw+wxEvAQRAPsk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7270514},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"05e21ed128910f1dc2edb43a21966e1118c71ae2","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.5.0_1776942431366_0.5801076549224837","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.5.1","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.5.1","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"89e36f20aa6b970d7d93a810dd61e1252c583174","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.5.1.tgz","fileCount":447,"integrity":"sha512-vwKXaJxRtG3l2mWDPX/yihdDsdkpcrJDAssX4uGuLDHa8cEd0qC/4o3gwca/sJudDE42UkLeOmU3LXLIzAo+aA==","signatures":[{"sig":"MEYCIQCaCC7vvVe7Si7Zs0Y75Woq8xa0rri+hvRxDpiYeuwpgAIhAKlugyGvdYmmpRodNvWbulx0X41gi4tx+q78CPBal8CH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7270629},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"887c3773b449f8c2978048dcf4281f67762dc719","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.5.1_1776949513917_0.1787217355781594","host":"s3://npm-registry-packages-npm-production"}},"1.5.2":{"name":"@benwatsonuk/govuk-pages-plugin","version":"1.5.2","author":{"name":"BenWatsonUK"},"license":"MIT","_id":"@benwatsonuk/govuk-pages-plugin@1.5.2","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"dist":{"shasum":"876b549cf271093122e70b59290578944c3b15a5","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.5.2.tgz","fileCount":447,"integrity":"sha512-B+NEynRB2YsQSL1F+hw1zYRStKlwqQYv4BdgdV+GaeaH+4UAcALgy2+jcVkEjc1h76sE2NePP0pFmsx2y4moTA==","signatures":[{"sig":"MEUCIBhI/g/V1nRqqWuQuRzcD3yDJYohrAH27l9UXBJnS3jhAiEAiuAeNG78cG3U61Uf5CkJQpF0yreuKrwtaIi+Dl2ZGN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7270709},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"65d6ceb29385ab3be64fbcdced952585ca695824","scripts":{"test":"mocha --require ts-node/register","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist","clean":"rimraf dist"},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"repository":{"url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git","type":"git"},"_npmVersion":"11.6.2","description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","directories":{},"_nodeVersion":"25.2.1","dependencies":{"ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4","@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cpx":"^1.5.0","nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.0.8","@types/mocha":"^10.0.10","@types/express":"^5.0.6","json-schema-to-typescript":"^15.0.4"},"_npmOperationalInternal":{"tmp":"tmp/govuk-pages-plugin_1.5.2_1776949724119_0.4986116478965805","host":"s3://npm-registry-packages-npm-production"}},"1.5.3":{"name":"@benwatsonuk/govuk-pages-plugin","author":{"name":"BenWatsonUK"},"description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","version":"1.5.3","main":"dist/index.js","types":"dist/index.d.ts","homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git"},"scripts":{"test":"mocha --require ts-node/register","clean":"rimraf dist","build":"npm run clean && tsc && cpx \"src/{assets,views}/**/*\" dist"},"dependencies":{"@ukic/fonts":"^3.2.7","@ukic/web-components":"^3.17.0","ajv":"^8.17.1","express":"^4.18.2","nunjucks":"^3.2.4"},"devDependencies":{"@types/express":"^5.0.6","@types/mocha":"^10.0.10","@types/node":"^25.0.8","chai":"^4.3.7","cpx":"^1.5.0","json-schema-to-typescript":"^15.0.4","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^6.1.2","ts-node":"^10.9.2","typescript":"^5.9.3"},"license":"MIT","publishConfig":{"access":"public"},"gitHead":"4496f67b9f5ee700446fbb6e79c708d3776b60f0","_id":"@benwatsonuk/govuk-pages-plugin@1.5.3","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-LwYiRaeH7wyl7sDpwks1CswEcnQIWmDY4jxXcrpI7AngLD2GcxBV2zFhAoCiu/2D3iB8G3ZXG0yepzW7N+Q5HA==","shasum":"3edae3e93393c316a98b0738c946d1bf0f10c8e1","tarball":"https://registry.npmjs.org/@benwatsonuk/govuk-pages-plugin/-/govuk-pages-plugin-1.5.3.tgz","fileCount":449,"unpackedSize":7275036,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF5/PMRCrRZUUWFbtW4baUYpEy8gvv39KXAsS66T/mglAiEAuGb2629hoxanrVgcS4VkyfziBQ/x6kDPaMOEEnfXaws="}]},"_npmUser":{"name":"benwatsonuk","email":"hello@benwatson.eu"},"directories":{},"maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/govuk-pages-plugin_1.5.3_1776955524751_0.4991703887465715"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-15T16:54:50.609Z","modified":"2026-04-23T14:45:25.429Z","1.0.0":"2026-01-15T16:54:50.895Z","1.0.1":"2026-01-16T09:54:21.626Z","1.1.0":"2026-01-17T07:56:02.383Z","1.1.1":"2026-01-17T08:15:51.066Z","1.2.0":"2026-01-20T20:23:26.522Z","1.2.1":"2026-01-21T16:37:47.913Z","1.2.2":"2026-01-21T18:56:52.776Z","1.3.0":"2026-01-22T09:33:02.589Z","1.4.0":"2026-01-30T13:24:30.794Z","1.4.1":"2026-03-18T09:20:46.734Z","1.4.2":"2026-03-18T09:26:48.837Z","1.4.3":"2026-03-18T09:29:41.454Z","1.5.0":"2026-04-23T11:07:11.572Z","1.5.1":"2026-04-23T13:05:14.086Z","1.5.2":"2026-04-23T13:08:44.406Z","1.5.3":"2026-04-23T14:45:24.984Z"},"bugs":{"url":"https://github.com/benwatsonuk/govuk-pages-plugin/issues"},"author":{"name":"BenWatsonUK"},"license":"MIT","homepage":"https://github.com/benwatsonuk/govuk-pages-plugin","repository":{"type":"git","url":"git+https://github.com/benwatsonuk/govuk-pages-plugin.git"},"description":"A plugin to visualise selected pages of a GOV.UK prototype with a linear user journey or page index.","maintainers":[{"name":"benwatsonuk","email":"hello@benwatson.eu"}],"readme":"# govuk-pages-plugin\nA plugin for GOVUK Prototype Kit that shows selected pages in various indexes (lists) and visualises user flows and journeys so that users can navigate directly to them. \n\nThe idea is that by providing elevated perspectives of journeys and pages, designers and UCD teams can discuss them without the high fidelity detail of the page, affording them the option of choosing when it is appropriate to 'zoom in' to this detail. \n\nThe plugin also gives the option of an 'overview' page which allows UCD teams to give some additional context to pages with a 'semi zoomed-in' view, this can be useful to showcase variants, iterations or states of a given page.\n\n## Requirements\n\nTo use this plugin, first start a prototype by installing the GOV.UK Prototype Kit (version 13 or later).\n\n### 1. Install the plugin\n\nIn the folder that contains your prototype, install the plugin by running the following terminal command:\n\n```bash\nnpm install https://github.com/benwatsonuk/govuk-pages-plugin\n```\n\n### 2. Add the following code to your prototype's routes.js file(s)\n\n#### Basic Setup\n\n```js\nconst { govukPagesPlugin, pageOverview } = require('@benwatsonuk/govuk-pages-plugin')\n```\n\nIf you use multiple routes files, include the above code on the pages that you wish to use the features of the plugin on.\n\nThen for the most basic implementation declare the route that you wish to use and call the function to generate all available flows and indexes from the data that you provide:\n\n```js\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages, stages, flows))\n\nrouter.get(`/path-of-your-choice/page/:pageId`, (req, res) => {\n  pageOverview(Number(req.params.pageId), pages, req, res)\n})\n```\n\nFor all functions, you MUST provide a valid `pages` property (see below), `stages` and `flows` are always optional but provide some useful functionality. See below about how to use these optionally.\n\n#### Advanced Setup\n\nCall and use any of the exported functions available in dist/index.js file - this can be useful if you wish to use the plugin's data to create your own views or you wish to set up custom paths/routes.\n\nSee the examples below for more details.\n\n## Using the plugin\n\nThere are two main ways in which you might want to use the plugin.\n    \n1. To supply the relevant page data (in the expected format - see below) and have the plugin render indexes, directories and user-flows using the supplied templates\n2. Create views yourself by supplying the relevant page data to the plugin and have it return a usable data object, that you can either use yourself or call components and templates from the plugin to create your own bespoke views\n\n## What data do I need to supply the plugin?\n\nThat depends on which of the plugin's features you wish to use. There are 3 types of data that you could provide the plugin:\n\n1. **Page Data** - REQUIRED - this is information at the page level, all pages that will be referenced or indexed will need to be included.\n2. **Stage Data** - OPTIONAL -this is a type of grouping that pages can belong to (they don't have to!) e.g. 'authentication' or 'registering' etc. it can group pages based on a subset of a journey.\n3. **Flow Data** - OPTIONAL - this type of data describes discrete journeys or flows. It can string pages together to visualise the journey a user might take.\n\n### Page Data (required)\n\nAt the most basic level, the plugin will need a list of pages to work with. This ***must*** be passed to the plugin (via the Express route) as a valid JSON object that matches the schema defined at https://github.com/benwatsonuk/govuk-pages-plugin/blob/main/src/schema.json under the 'pages' definition. \n\nIf you are familiar with TypeScript, you could also reference https://github.com/benwatsonuk/govuk-pages-plugin/blob/main/src/types.ts (see 'Page').\n\nIn future, hopefully this can be automated but for now, you will need to create this array in order to use the plugin.\n\n### Stage Data (optional)\n\nStages aren't required but they can add useful groupings to series of pages that are useful when visualising or listing a large number of pages at once. For example, a series of 'stages' that might exist when accessing your 'Personal Tax Account' from HMRC might be:\n\n- GOV.UK Guidance\n- Authentication\n- Personal Account Dashboard\n\nThere is also the concept of 'sub-stages' which allows you to break these down even further, for example:\n\n- Authentication\n    - Select Method\n    - Government Gateway\n    - One Login\n- Personal Tax Account \n    - PAYE\n    - Account Management\n    - Messages\n\nIf stages are provided and the page data refers to the relevant ID in the pages object, the ability to visualise by stages, group indexes by stages etc. will be possible.\n\nMake sure the 'stages' array matches the schema defined at https://github.com/benwatsonuk/govuk-pages-plugin/blob/main/src/schema.json under the 'stages' definition. \n\nIf you are familiar with TypeScript, you could also reference https://github.com/benwatsonuk/govuk-pages-plugin/blob/main/src/types.ts (see 'Stage').\n\n### Flow Data (optional)\n\nIf this is passed to the plugin, we can visualise user journeys from end to end and the prototype will allow navigaton directly to the relevant pages. This can be useful when giving an overview of a flow that a user might go through, or to give context as to a page's position in a longer journey.\n\n## Examples\n\nMost basic example:\n\n```js\nconst { govukPagesPlugin } = require('@benwatsonuk/govuk-pages-plugin')\n\n// If you have all objects\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages, stages, flows))\n\n// If you have ONLY pages\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages))\n\n// If you have PAGES and STAGES objects\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages, stages))\n\n// If you have PAGES and FLOWS objects\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages, null, flows))\n```\n\nHere are some recipes for adding data to your routes:\n\n```js\nconst { govukPagesPlugin, pageIndex, stageIndex, stageIndexData, pageIndexData } = require('@benwatsonuk/govuk-pages-plugin')\n\nrouter.use(`/path-of-your-choice/pages`, govukPagesPlugin(pages, stages, flows))\nrouter.use(`/path-of-your-choice/page-index`, pageIndex(pages))\nrouter.use(`/path-of-your-choice/stage-index`, stageIndex(stages, pages))\nrouter.use(`/path-of-your-choice/flow-index`, flowIndex(flows, pages, stages))\n\nrouter.get(`/path-of-your-choice/stage-index-test`, (req, res) => {\n  res.render(`path-of-your-choice/stage-index-test`, {\n    stages: stageIndexData(stages, pages)\n  })\n})\n\nrouter.get(`/path-of-your-choice/page-index-test`, (req, res) => {\n  res.render(`path-of-your-choice/page-index-test`, {\n    pages: pageIndexData(pages)\n  })\n})\n\nrouter.get(`/path-of-your-choice/flow-index-test`, (req, res) => {\n  res.render(`path-of-your-choice/flow-index-test`, {\n    pages: flowIndexData(flows, pages, stages)\n  })\n})\n```\n\nHere are some examples of 'stage' and 'page' data arrays:\n\n### Pages\n\n```js\nconst pages = [\n  {\n    id: 1,\n    title: 'Title 1',\n    type: 'email',\n    description: 'A description about item 1',\n    route: '/a/a/1',\n    stage: {main: 'stage1', subStage: 1}\n  },\n  {\n    id: 2,\n    title: 'Title 2',\n    type: 'email',\n    description: 'A description about item 2',\n    route: '/b/b/2',\n    stage: {main: 'stage2', subStage: 2}\n  },\n  {\n    id: 3,\n    title: 'Title 3',\n    type: 'email',\n    description: 'A description about item 3',\n    route: '/a/b/3'\n  }\n];\n```\n\n### Stages\n\n``` js\nconst stages = [\n  {\n    id: 'stage1',\n    title: 'Stage 1',\n    description: 'A description about stage 1',\n    route: '/a',\n    subStages: [\n      {\n        id: 1,\n        title: 'Sub-stage 1-1',\n        description: 'A description about sub-stage 1-1',\n        route: '/a/a'\n      },\n    {\n        id: 2,\n        title: 'Sub-stage 1-2',\n        description: 'A description about sub-stage 1-2',\n        route: '/a/b'\n      }\n    ]\n  },\n    {\n    id: 'stage2',\n    title: 'Stage 2',\n    description: 'A description about stage 2',\n    route: '/b',\n    subStages: [\n      {\n        id: 1,\n        title: 'Sub-stage 2-1',\n        description: 'A description about sub-stage 2-1',\n        route: '/b/a'\n      },\n    {\n        id: 2,\n        title: 'Sub-stage 2-2',\n        description: 'A description about sub-stage 2-2',\n        route: '/b/b'\n      }\n    ]\n  }\n]\n```\n### Flows\n\n```js\nconst flows = [\n  {\n    id: 1,\n    title: 'Flow 1',\n    description: 'A description of Flow 1',\n    user: 'User A',\n    steps: [\n      {\n        pageId: 1\n      },\n      {\n        pageId: 2\n      }\n    ]\n  },\n  {\n    id: 2,\n    title: 'Flow 2',\n    description: 'A description of Flow 2',\n    user: 'User B',\n    steps: [\n      {\n        pageId: 2\n      },\n      {\n        pageId: 3\n      }\n    ]\n  }\n];\n```\n\n\n\n","readmeFilename":"README.md"}