
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
redis-random-data-generator
Advanced tools
Generate and insert random values into a redis instance from the command line
In working for another NPM project I needed to populate a redis instance with a bunch of random data. I found the redis pipe command wasn't working so well so I made this script to facilitate the process.
Generator.js - quickly add random data to a redis instance.
Basic Usage:
node generator.js <type> <qty> [<key_prefix>]
This will enter <qty> of <type> entries into the redis instance
running at the server and port address set in the config.json
file.
If <key_prefix> is set then this will be prepended to the key (uuid) separated by a ":" - thanks to Alfonso Montero for this contribution
node generator.js hash 100 session
1)...
100) "session:ffab3b35-09c3-4fd7-9af1-4d323534065e"
This (config.json) file is automatically generated on running npm install redis-random-data-generator and will default to 127.0.0.1:6379 change the settings to suit your setup. If the file gets deleted the local default setting will be used.
There is no provision yet for an array of <types> so if you
require various entries you will need to run the command several
times.
Run npm test to perform tests on the script.
The script uses generated uuids for keys and random lorum ipsum
for values.
Dependancy Graph for generator.js
├─┬ lorem-ipsum@1.0.3
│ └─┬ optimist@0.3.7
│ └── wordwrap@0.0.3
├─┬ redis-stream@0.1.0
│ └─┬ event-stream@2.1.9
│ ├── from@0.1.3
│ ├── optimist@0.2.8
│ └── through@0.0.4
└── uuid@3.0.1
Types (others may be added in future versions i.e. geohash):
FAQs
Generate and insert random values into a redis instance from the command line
We found that redis-random-data-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.