# jsonotron-core-format-validators

> A library of standard format validators that can be used with the Jsonotron system.

Latest version **3.1.0** (published 2020-11-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install jsonotron-core-format-validators
pnpm add jsonotron-core-format-validators
yarn add jsonotron-core-format-validators
bun add jsonotron-core-format-validators
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2020-11-14 |
| First published | 2020-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Karl Hulme |
| Maintainers | karlhulme |

## Links

- npm: https://www.npmjs.com/package/jsonotron-core-format-validators
- Repository: https://github.com/karlhulme/jsonotron-core-format-validators
- Homepage: https://github.com/karlhulme/jsonotron-core-format-validators#readme
- Issues: https://github.com/karlhulme/jsonotron-core-format-validators/issues
- npm.io page: https://npm.io/package/jsonotron-core-format-validators

## Dependencies (2)

- [luxon](https://npm.io/package/luxon.md) ^1.25.0
- [fast-luhn](https://npm.io/package/fast-luhn.md) ^1.1.1

## Recent versions

- 3.1.0 (latest) — 2020-11-14
- 3.0.0 — 2020-09-03
- 2.1.1 — 2020-09-02
- 2.1.0 — 2020-09-02
- 2.0.1 — 2020-09-01
- 2.0.0 — 2020-09-01

## README

# Jsonotron Core Format Validators

A library of format validators for the Jsonotron system.

![](https://github.com/karlhulme/jsonotron-core-format-validators/workflows/CD/badge.svg)
[![npm](https://img.shields.io/npm/v/jsonotron-core-format-validators.svg)](https://www.npmjs.com/package/jsonotron-core-format-validators)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

This library is intended for use with the [Jsonotron](https://github.com/karlhulme/jsonotron) system.

Available format validators:

Name | Description
---|---
jsonotron-local-date-time | Validates dates and times that are based on a local time-zone in the form YYYY-MM-DD[T]HH:mm:ssZZ.  This format must include a +/- xx:xx timezone offset and not end with 'z' or Z.
jsonotron-luhn | Validates credit-card numbers.
jsonotron-utc-date-time | Validates dates and times that are based on universal co-ordinated time in the form YYYY-MM-DD[T]HH:mm:ss[Z].  This format must not include a timezone offset and instead will end with a Z.

## Installation

```bash
npm install jsonotron-core-format-validators --save
```

## Development

Code base adheres to the rules chosen by https://standardjs.com/.  Code is formatted with 2 spaces.

Tests are written using Jest with 100% coverage.

```javascript
npm test
```

## Continuous Integration and Deployment

Any pushes or pull-requests on non-master branches will trigger the test runner.

Any pushes to master will cause the library to be re-published.

---
_Source: https://npm.io/package/jsonotron-core-format-validators · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
