# @tryghost/validator

Latest version **3.3.0** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tryghost/validator
pnpm add @tryghost/validator
yarn add @tryghost/validator
bun add @tryghost/validator
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.3.0 |
| Published | 2026-11-16 |
| First published | 2021-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 26.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 37 |
| Author | Ghost Foundation |
| Maintainers | zimoatghost, allouis, kernalghost, chrisraible, erisds, johnonolan, kevinansfield, cobbspur, aileencgn, jloh, minimaluminium, sam-lord, pauladamdavis, bobvaneck, joeegrigg, erik-ghost, sagzy, vershwal, zach1618, mike182uk, luissazevedo, lsinger, nickmoreton, renatoworks, rblstr-ghost, evanhahn-ghost, austin.burdine, foxsters, afeinsod, weylandswart, louisghost, ghost-slimer, tmciesco, jonatan-ghost, 9larsons |

## Links

- npm: https://www.npmjs.com/package/@tryghost/validator
- Repository: https://github.com/TryGhost/framework
- npm.io page: https://npm.io/package/@tryghost/validator

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.18.1
- [validator](https://npm.io/package/validator.md) ^13.15.35
- [@tryghost/tpl](https://npm.io/package/@tryghost/tpl.md) ^2.3.22
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.23
- [@tryghost/errors](https://npm.io/package/@tryghost/errors.md) ^3.4.8

## Recent versions

- 3.3.0 (latest) — 2026-11-16
- 3.2.23 — 2026-11-12
- 3.2.22 — 2026-11-11
- 3.2.21 — 2026-11-09
- 3.2.20 — 2026-11-02
- 3.2.19 — 2026-10-14
- 3.2.18 — 2026-10-14
- 3.2.17 — 2026-10-09
- 3.2.16 — 2026-10-01
- 3.2.15 — 2026-09-30
- 3.2.14 — 2026-09-11
- 3.2.13 — 2026-09-03
- 3.2.12 — 2026-09-01
- 3.2.11 — 2026-09-01
- 3.2.10 — 2026-08-26
- … 80 more at https://npm.io/package/@tryghost/validator/versions

## README

# 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](https://nx.dev).

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 & License

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

---
_Source: https://npm.io/package/@tryghost/validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
