UNPKG

base-cli-process

Version:

Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling `.process()`

11 lines (7 loc) 234 B
'use strict'; var util = require('util'); var debug = require('debug'); var field = debug('base:cli:process:field'); module.exports.field = function(key, val) { field('processing ' + key + ': ' + util.inspect(val, null, 10)); };