krav
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

WIP NOTICE: Krav is very much still a WIP and in no condition to be used by anyone!

codecov CI Status

Krav [kra:v]

Krav = swedish for "requirement" or "demand"

const { expect, assert, assume } = require('Krav');
 
expect(someValue).String.Length.Min(2);
 
expect(someValue).String.Either(['hi', 'hello']);
 
expect(someValue).String.Exact('blueberry');

Docs

See https://github.com/Olian04/Recordari/blob/master/docs/constraints.md for future reference

Package Sidebar

Install

npm i krav

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

50.1 kB

Total Files

46

Last publish

Collaborators

  • olian04