Published to NPM as @dungeoneer-io/nodejs-utils
- Common utilities used by @dungeoneer-io when writing NodeJS processes
- {
getDb
andinitDb
} for connecting to a mongodb at env variable constringZEPHYR_BLIZZDATA_MONGO_CONSTRING
- {
queueUntilResolved
} allows multi-threaded processing of async jobs - {
lambdaTry200Catch500
} gives a standard framework to Lambda invocations - {
sendDiscordNotification
} sends a message to Discord webhook found at env variableDISCORD_NOTIFICATION_WEBHOOK
- {
connectToBlizzard
} uses env variablesZEPHYR_BLIZZARD_API_KEY
andZEPHYR_BLIZARD_API_SECRET
to connect to BlizzAPI
When implementing this project, you'll want to include env variables if you want to use Mongo, Blizzard, or Discord Notifications. Try installing dotenv
to create the variables locally to the project
DIO_MONGO_CONSTRING="VALUEHERE"
BLIZZARD_API_KEY="VALUEHERE"
BLIZZARD_API_SECRET="VALUEHERE"
DISCORD_NOTIFICATION_WEBHOOK="(optional)"