This commit is contained in:
Domen Kožar 2019-11-19 17:50:30 +01:00
parent cd5893b2c6
commit 70742d22d9
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
6774 changed files with 1602535 additions and 1 deletions

19
node_modules/object-inspect/example/all.js generated vendored Normal file
View file

@ -0,0 +1,19 @@
var inspect = require('../');
var Buffer = require('safer-buffer').Buffer;
var holes = [ 'a', 'b' ];
holes[4] = 'e', holes[6] = 'g';
var obj = {
a: 1,
b: [ 3, 4, undefined, null ],
c: undefined,
d: null,
e: {
regex: /^x/i,
buf: Buffer.from('abc'),
holes: holes
},
now: new Date
};
obj.self = obj;
console.log(inspect(obj));

4
node_modules/object-inspect/example/circular.js generated vendored Normal file
View file

@ -0,0 +1,4 @@
var inspect = require('../');
var obj = { a: 1, b: [3,4] };
obj.c = obj;
console.log(inspect(obj));

3
node_modules/object-inspect/example/fn.js generated vendored Normal file
View file

@ -0,0 +1,3 @@
var inspect = require('../');
var obj = [ 1, 2, function f (n) { return n + 5 }, 4 ];
console.log(inspect(obj));

7
node_modules/object-inspect/example/inspect.js generated vendored Normal file
View file

@ -0,0 +1,7 @@
var inspect = require('../');
var d = document.createElement('div');
d.setAttribute('id', 'beep');
d.innerHTML = '<b>wooo</b><i>iiiii</i>';
console.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ]));