@govuk-one-login/mobile-wallet-mdoc-builder
v0.2.0
Published
[](LICENSE)
Maintainers
Keywords
Readme
Mobile Wallet mdoc Builder
Overview
A TypeScript library for building mdoc (ISO 18013-5) documents for use with GOV.UK Wallet. It provides a type-safe API for constructing and encoding mdoc-based credentials.
Tech stack
Built with TypeScript and Node.js, published as a dual-format (ESM and CJS) npm package.
Prerequisites
- Node.js — we recommend managing versions with nvm
- Pre-commit
Set up locally
Install
nvm use
npm installLint and format
npm run lint
npm run formatType check
npm run typecheckBuild
npm run buildContributing
This project uses pre-commit to enforce code quality and validate commit messages against Conventional Commits standards. Non-conforming messages will be rejected.
Ensure your branch is up to date and all hooks pass before opening a pull request. Avoid using the git --no-verify flag to skip these checks unless absolutely necessary.
Installing pre-commit hooks
brew install pre-commitpre-commit install --hook-type pre-commit --hook-type commit-msg