cbc 1.2.4664.39309

A JavaScript library with function argument assertions, a function parser and assertion wrapper functionality. 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.

Install-Package cbc -Version 1.2.4664.39309
dotnet add package cbc --version 1.2.4664.39309
<PackageReference Include="cbc" Version="1.2.4664.39309" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cbc --version 1.2.4664.39309
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

1.2.4664.39309: Breaking change: moved CbC JavaScript files into scripts\cbc folder
1.2.4664.39309: Added cbc.contract.js/cbc.contract.min.js to NuGet package
1.2.4664.39309: Implemented CbC test helpers. See https://github.com/knutkj/cbc/wiki/CbC-test-helpers for more information
1.2.0: Breaking change in FuncInfo/ParamInfo getters. Changed from getPropertyName into get_propertyName
1.2.0: New wrap function (cbc.contract.wrap)
1.2.0: New getDoc function (cbc.parse.getDoc)
1.1.0: New function parser (cbc.parse.func)


This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.4664.39309 1,130 10/8/2012
1.2.0 760 3/11/2012
1.1.0 573 2/26/2012
1.0.2 568 2/24/2012
1.0.1 603 2/2/2012
1.0.0 562 1/31/2012