fvi-node-utils
Version:
Freunde Von Idden - Node Utils Library
21 lines (15 loc) • 362 B
JavaScript
const debug = require('debug')
const path = require('path')
/*
module.exports.default = debug('fvi-node-utils')
module.exports = debug
*/
const partial = namespace => msg => {
debug(`${namespace}`)(`::debug:: ${msg}`)
}
const here = msg => {
partial(path.basename(path.resolve()))(msg)
}
module.exports = partial
module.exports.here = here