@@ -78,9 +78,7 @@ See [Real Need](#RealNeed) for description of what the `total` and `risk` parame
7878 ``` js
7979 const { Entropy , charset16 } = require (' entropy-string' )
8080
81- const entropy = new Entropy ({ total: 1e6 ,
82- risk: 1e9 ,
83- charset: charset16 })
81+ const entropy = new Entropy ({ total: 1e6 , risk: 1e9 , charset: charset16 })
8482 const string = entropy .string ()
8583 ```
8684
@@ -91,9 +89,7 @@ Custom characters may also be specified. Using uppercase hexadecimal characters:
9189 ``` js
9290 const { Entropy } = require (' entropy-string' )
9391
94- const entropy = new Entropy ({ total: 1e6 ,
95- risk: 1e9 ,
96- charset: ' 0123456789ABCDEF' })
92+ const entropy = new Entropy ({ total: 1e6 , risk: 1e9 , charset: ' 0123456789ABCDEF' })
9793 const string = entropy .string ()
9894 ```
9995
@@ -195,9 +191,7 @@ Let's use `EntropyString` to help this developer generate 5 hexadecimal IDs from
195191
196192 ``` js
197193 const { Entropy , charset16 } = require (' entropy-string' )
198- const entropy = new Entropy ({ total: 10000 ,
199- risk: 1000000 ,
200- charset: charset16 })
194+ const entropy = new Entropy ({ total: 10000 , risk: 1000000 , charset: charset16 })
201195 const strings = Array (5 ).fill (' ' ).map (e => entropy .string ())
202196 ```
203197
@@ -231,9 +225,7 @@ As another example, let's assume we need to ensure the names of about 30 items a
231225 ``` js
232226 const { Entropy , charset16 , charset4 } = require (' entropy-string' )
233227
234- const entropy = new Entropy ({ total: 30 ,
235- risk: 100000 ,
236- charset: charset16 })
228+ const entropy = new Entropy ({ total: 30 , risk: 100000 , charset: charset16 })
237229 const string = entropy .string ()
238230 ```
239231
0 commit comments