devlog.js 297 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. var inspect = require("util").inspect;
  3. function log(data)
  4. {
  5. console.log( inspect(data, {depth:null, colors:true}) );
  6. }
  7. function logAll(data)
  8. {
  9. console.log( inspect(data, {depth:null, showHidden:true, colors:true}) );
  10. }
  11. module.exports =
  12. {
  13. log: log,
  14. logAll: logAll
  15. };