utl.js 219 B

123456789101112
  1. 'use strict'
  2. var util = require('util')
  3. module.exports.isPath = function(s) {
  4. return (/[/\\]/).test(s)
  5. }
  6. module.exports.inspect = function(obj, depth) {
  7. console.log(util.inspect(obj, false, depth || 5, true))
  8. }