UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

12 lines (10 loc) 290 B
'use strict'; module.exports = function (t, a) { a(t(null), false, "Null"); a(t(''), true, "Empty string"); a(t(12), false, "Number"); a(t(false), false, "Boolean"); a(t(new Date()), false, "Date"); a(t(new String('raz')), true, "String object"); a(t('asdfaf'), true, "String"); };