Skip to content

Commit

Permalink
Fix README and make the default limit bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
kraklin committed Sep 4, 2019
1 parent 3fd7d6d commit 5a5659f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,16 @@ That way the `Debug.log` would output simpler JS object without `type` informati

### Options
Options object can be provided to `register` function:

```
import * as ElmDebugger from 'elm-debug-transformer';
ElmDebugger.register({simple_mode: true, debug: false, limit: 10000});
`
```

| parameter | type | description | default value |
|-------------|---------|------------------------------------------------------------|---------------:|
| `limit` | number | number of message characters after which the parser won't parse the message. (Helpful for bypass the parsing of large datastructures) | `100 000` |
| `limit` | number | number of message characters after which the parser won't parse the message. (Helpful for bypass the parsing of large datastructures) | `1 000 000` |
| `debug` | limit | include original message and parser error with the message | `false` |
| `simple_mode` | boolean | force output to be in simple object format | `false` |

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IOptions {

const defaultOptions: IOptions = {
debug: false,
limit: 100000,
limit: 1000000,
simple_mode: false,
}

Expand Down

0 comments on commit 5a5659f

Please sign in to comment.