npm.io
3.1.0 • Published 5 years ago

jsonotron-core-format-validators

Licence
MIT
Version
3.1.0
Deps
2
Size
9 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Jsonotron Core Format Validators

A library of format validators for the Jsonotron system.

npm JavaScript Style Guide

This library is intended for use with the 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]HHssZZ. 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]HHss[Z]. This format must not include a timezone offset and instead will end with a Z.

Installation

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.

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.