Skip to content

Commit

Permalink
version 0.0.8
Browse files Browse the repository at this point in the history
- added options ‘hideTypes’ and ‘collapse’
- fixed issue with sorting of array indexes
  • Loading branch information
ragamufin authored and ragamufin committed Jul 25, 2014
1 parent c505978 commit 0f33728
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 515 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# 0.0.8
- Added the ability to skip over data types like Functions when dumping: https://github.com/ragamufin/nodedump/pull/8
- Fixed issue array keys not being sorted properly: https://github.com/ragamufin/nodedump/pull/8#issuecomment-47699217
- Added new options 'hideTypes' and 'collapse': https://github.com/ragamufin/nodedump#options

# 0.0.7
- Fixed issue with path to highlight.js: https://github.com/ragamufin/nodedump/issues/7

# 0.0.4
- added this document
- fix for arrays with non-numeric keys issue: https://github.com/ragamufin/nodedump/issues/5
Expand Down
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -184,9 +184,11 @@ Options can be passed as an object whenever you `nodedump` a variable as the sec

The available options are:
* `label` - String. Output on the header of the dump.
* `expand` - Boolean/Array. Defaults to `true`. The dump can be collapsed entirely by passing `false`. Simply click on the headers in order to expand them. An array of types can be passed and the keys of those objects will be expanded while everything else collapsed. For e.g. `['Array', 'Object', 'Function']`
* `expand` - Boolean/Array. Defaults to `true`. The dump can be collapsed entirely by passing `false`. Simply click on the headers in order to expand them. An array of complex types can be passed and those types of objects will be expanded while everything else will remain collapsed. For e.g. `['Array', 'Object', 'Function']`
* `collapse` - Boolean/Array. Defaults to `false`. Works opposite the way `expand` does. The dump can be collapsed entirely by passing `true`. An array of types can be passed and those types of objects will be collapsed wherever they are in the dump. For e.g. `['Array', 'Object', 'Function']`
* `show` - Array. A list of object keys / array positions to show. Others not in the list will be hidden.
* `hide` - Array. A list of object keys / array positions to hide.
* `hideTypes` - Array. A list of complex types of objects to exclude from being output. e.g. `['RegExp', 'Function']`.
* `top` - Number. The number of array positions of the dump variable to show. For objects, this is the number of keys of the top level to show.
* `levels` - Number. How many nested levels of an object to dump down to.
* `sortKeys` - Boolean. Defaults to `true`. Tells nodedump to output the keys of objects sorted alphabetically. If `false`, keys will be output in whatever order node.js returns them (usually the order in which they were added).
Expand Down
3 changes: 1 addition & 2 deletions nodedump-client/nodedump-client-min.js

Large diffs are not rendered by default.

0 comments on commit 0f33728

Please sign in to comment.