npm.io
3.2.5 • Published 3d ago

@tryghost/validator

Licence
MIT
Version
3.2.5
Deps
0
Vulns
0
Weekly
0
Stars
37

Validator

Install

npm install @tryghost/validator --save

or

pnpm add @tryghost/validator

Purpose

Ghost validation utilities built on validator.js, including custom validators and structured validation errors.

Usage

Develop

This is a mono repository, managed with Nx.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run pnpm install to install top-level dependencies.

Run

  • pnpm dev

Test

  • pnpm lint runs oxlint
  • pnpm test runs lint and tests

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.