utl.js 213 B

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