0.2.3 • Published 3 years ago

th-utils v0.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

th-utils

A node module providing compatible utility methods to other modules by the same author, now ported to npm conventions.

This module is not recommended for any other purpose.

Usage

// these are incomplete examples listing only a few methods
var th = require('./th-utils');

var assert = th.assert;
var Logger = th.Logger;

 var passesTest = false;
 assert(passesTest, "accepts a condition, sprintf-style fmt string, variable args like %s and %z", 
  "Hi", {a:1, b:2} );

Logger.log("also takes a sprintf style string, and for now just maps to console.log");

Tests

Run gulp default target to execute tests

   gulp