Info
Version: | 1.2.4664.39309 |
Author(s): | Knut Kristian Johansen |
Last Update: | Monday, October 8, 2012 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/knutkj/cbc/wiki |
NuGet Url: | https://www.nuget.org/packages/cbc |
Install
Install-Package cbc
dotnet add package cbc
paket add cbc
cbc Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
By wrapping your functions you get defined, notNull, bool, func, number, object, string and notEmpty assertions for free. The interface is specially optimised for the Visual Studio JavaScript IntelliSense.
Note that the assertions are not for unit testing, but for function arguments.
This is a JavaScript design by contract (DbC) implementation.
For more information about DcB visit: http://en.wikipedia.org/wiki/Design_by_contract.