all.js 391 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. var inspect = require('../');
  3. var Buffer = require('safer-buffer').Buffer;
  4. var holes = ['a', 'b'];
  5. holes[4] = 'e';
  6. holes[6] = 'g';
  7. var obj = {
  8. a: 1,
  9. b: [3, 4, undefined, null],
  10. c: undefined,
  11. d: null,
  12. e: {
  13. regex: /^x/i,
  14. buf: Buffer.from('abc'),
  15. holes: holes
  16. },
  17. now: new Date()
  18. };
  19. obj.self = obj;
  20. console.log(inspect(obj));