Generate random garbage json data.
> var garbage = require('garbage')
> garbage()
4.136307826118192
> garbage()
-7.327021010101647
> garbage()
{ '0\t4$$c(C&s%': {},
'': 2.221633433726717,
'!&pQw5': '<~.;@,',
'I$t]hky=': {},
'{4/li(MDYX"': [] }
> garbage()
false
var garbage = require('garbage');
Generate a random type of object with at most count
nested types.
Alias: garbage.json
Generate a random object with at most count
randomly generated descendants.
Generate a random array with at most count
randomly generated descendants.
Generate a randomish string.
Returns true or false.
Returns a random float but more likely to return floats closer to 0.
With npm do:
npm install garbage