Skip to content

Commit 51e3b2c

Browse files
committed
Fix example
1 parent 5b99d0e commit 51e3b2c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ Example:
244244
```js
245245
import { stringifyInfo } from '@discoveryjs/json-ext';
246246
247-
console.log(stringifyInfo({ test: true }));
247+
console.log(stringifyInfo({ test: true }, null, 4));
248248
// {
249-
// bytes: 13, // Buffer.byteLength('{"test":true}')
249+
// bytes: 20, // Buffer.byteLength('{\n "test": true\n}')
250+
// spaceBytes: 7,
250251
// circular: []
251252
// }
252253
```

0 commit comments

Comments
 (0)