npm.io
1.8.1 • Published 5 years ago

sengi-validation

Licence
MIT
Version
1.8.1
Deps
5
Size
110 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Sengi-Validation

npm JavaScript Style Guide

This library provides validation functions for the (Sengi)[https://github.com/karlhulme/sengi] document-database system.

It provides functions for checking that a given document adheres to it's document type. It also validates the other resources: enum types, schema types, format validators and role types.

This library can be used to to verify doc types independently of the engine, including as part of a set of automated tests.

Installation

npm install sengi-validation

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 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.