Skip to content

Commit

Permalink
added CJS example
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarre committed Feb 8, 2024
1 parent b5de314 commit 5003f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const scrambled = scramble(json, { chaos: 50 });
Note that you can also use CommonJS:

```javascript
const scramble = require('json-scramble);
const scramble = require("json-scramble")
```

The `chaos` option controls how much the JSON is scrambled. A value of `0` makes no changes to the JSON and simply passes it through unchanged, while a value of `100` or higher will completely scramble the document. The default `chaos` is `10`.
Expand Down

0 comments on commit 5003f7c

Please sign in to comment.