An open API service indexing awesome lists of open source software.

https://github.com/kth/kth-validation


https://github.com/kth/kth-validation

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# KTH Validation

Validation utils commonly used in KTH Node projects

## Example

```javascript

const { required } = require('@kth/kth-validation')

function aFunction(name, occupation) {
required({name, occupation})

// .. do magic things
}

// No errors
aFunction('John', 'Painter')

// Error is thrown
aFunction('John')

```