Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "nerdata", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "testdata for the fantasy/scifi enthusiast", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -5,2 +5,4 @@ # nerdata | ||
Now with zero dependencies! | ||
## DATA | ||
@@ -33,5 +35,13 @@ | ||
To limit memory usage, you can limit in two ways: | ||
A custom number generator can be provided to be used instead of `Math.random()`: | ||
```js | ||
const nerdata = new Nerdata({ | ||
randomFn: someRandomFunction, | ||
}); | ||
``` | ||
There are two ways to select which universes you want (or limit memory usage): | ||
```js | ||
// Inclusive | ||
@@ -38,0 +48,0 @@ const nerdata = new Nerdata({ |
67334
126