get-garbage
v1.0.1
Published
This library will help you generate garbage.
Downloads
1
Readme
Get-garbage
This library will help you generate garbage.
npm install get-garbage
Usage/Examples
import garbage from 'get-garbage'
Or
const garbage = require('get-garbage')
And then
console.log(garbage());
There are many types of garbage that can be generated, like:
| type | garbage | |-----------|---------------------------------------------------------------------| | string | A random string | | int | Number between -Number.MAX_SAFE_INTEGER and Number.MAX_SAFE_INTEGER | | float | Float between -Number.MAX_SAFE_INTEGER and Number.MAX_SAFE_INTEGER | | BigInt | A really big number, propably unsafe | | array | Array with 100 or so random elements | | object | Object with 100 or so random elements | | promise | Promise that will execute somwhere in the next 100 seconds | | bool | A boolean | | null | A nullean | | function | A function that will return more garbage | | garbage | 🗑️ | | undefined | |
It can be useful for:
- And more!