1.0.1 • Published 1 year ago

get-garbage v1.0.1

Weekly downloads
-
License
WTFPL
Repository
-
Last release
1 year ago

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:

typegarbage
stringA random string
intNumber between -Number.MAX_SAFE_INTEGER and Number.MAX_SAFE_INTEGER
floatFloat between -Number.MAX_SAFE_INTEGER and Number.MAX_SAFE_INTEGER
BigIntA really big number, propably unsafe
arrayArray with 100 or so random elements
objectObject with 100 or so random elements
promisePromise that will execute somwhere in the next 100 seconds
boolA boolean
nullA nullean
functionA function that will return more garbage
garbage🗑️
undefined

It can be useful for:

  • And more!

License

License: WTFPL

1.0.1

1 year ago

1.0.0

1 year ago