generate-guestlist
Introduction
This script provides a means to quickly generate a guestlist.
Using generate-guestlist
From the root of the monorepo, run the following to create a guestlist
using the default flags:
npm run generate:guestlist
You can pass flags to this command to overwrite default values.
Options:
-g, --guest-count number of guests (default: 50)
-o, --output path to csv file (default: "/Users//Desktop/")
-n, --name name of csv file (default: "guestlist")
-s, --seed seed to generate random data (default: 1234567890)
-m, --meals number of unique meal tags (default: 5)
-t, --tags number of unique tags (default: 5)
-r, --group number of unique group tags (default: ((guestCount * density) / 1000))
-c, --custom-cols comma separated list of custom col names (default: null)
-b, --blacklist comma separated list of col names to skip data generation for (default: null)
-w, --whitelist comma separated list of col names to fill with data (default: null)
-d, --density percent of cells with data (default: 100)
-h, --help display help for command
Sample usage:
npm run generate:guestlist -- -g 500 -n test-list-500
will create a guestlist with 500 guests named "test-list-500.csv"