Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added inspect to utl

  • Loading branch information...
commit 47eed29ac4d3f8855a232a7c72a8e309c5cdb4f2 1 parent 0500076
@thlorenz authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 utl.js
View
11 utl.js
@@ -1,8 +1,11 @@
-function isPath (s) {
+var util = require('util');
+
+module.exports.isPath = function (s) {
return (/[\/\\]/).test(s);
-}
+};
-module.exports = {
- isPath: isPath
+module.exports.inspect = function(obj, depth) {
+ console.log(util.inspect(obj, false, depth || 5, true));
};
+
Please sign in to comment.
Something went wrong with that request. Please try again.