🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

nhsuk-prototype-kit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nhsuk-prototype-kit

TODO

latest
npmnpm
Version
8.0.0-internal.0
Version published
Maintainers
1
Created
Source

NHS Prototype kit

This repo contains the code for the NHS Prototype kit that will be distributed as an npm package.

The code contains:

  • an Express middleware app
  • some useful default settings for Express
  • some Nunjucks filters
  • Nunjucks views, including a template

Installing the kit

Using the template repository

The simplest way to get started is to use the NHS Prototype kit template repository.

From there, select 'Use this as a template' and follow the instructions.

Manual installation

You can also add the kit to an existing Express app by running:

npm install nhsuk-prototype-kit

Then, within your app.js file, add this line to the top:

const NHSPrototypeKit = require('nhsuk-prototype-kit')

and then after your app and nunjucks configuration code, add this:

NHSPrototypeKit.init({
  serviceName: 'Your service name',
  express: app,
  nunjucks: nunjucks,
  routes: routes,
  sessionDataDefaults: sessionDataDefaults
})

Using the Nunjucks filters only

If you only want to use the Nunjucks filters, you can use this:

NHSPrototypeKit.nunjucksFilters.addAll(nunjucksEnv)

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts