diff --git a/README.md b/README.md index 47a3b29..4441410 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,15 @@ const handleScramble = (text) => { // call scramble function with the text to be scrambled and handler. scrambler.scramble('- Friedrich Nietzsche -', handleScramble); + +// call scramble with the option to set the characters to use when scrambled. +scrambler.scramble(text, handleScramble, { + charactersToUseWhenScrambling: ['a', 'b', 'c'], +}); + +// Scrambler provides several characters. +console.log(Scrambler.CHARACTERS.DEFAULT); +console.log(Scrambler.CHARACTERS.ALPHABET); ``` ### React Example diff --git a/examples/index.html b/examples/index.html index aa1e949..9006190 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,39 +1,58 @@ -
- - - - -