assertf
Node's built-in assert
API augmented with message formatting printf-style.
Installation
npm install assertf
Examples
var assert = var apples = 2var bananas = 3 // message vars are automatically positioned appropriatelyassert// => AssertionError: Oops, 2 does not equal 3! // you can also supply your own substitutionsassert// => AssertionError: We have 3 bananas, but only 2 apples.
License
MIT