A repository of code shared between various PrairieLearn projects
published version 1.11.0, 5 years agoSchemas for various PrairieLearn JSON files
published version 1.0.0, 6 years agoUtilities for easily rendering HTML from within JavaScript.
published version 4.0.11, 2 days agoOpinionated wrapper around various `@opentelemetry/*` packages.
published version 2.1.11, 2 days agoUtilities for rendering EJS templates for use with the `@prairielearn/html` package.
published version 2.0.11, 2 days agoThis package allows for the creation and removal of bind mounts via native bindings to the [`mount()`](https://man7.org/linux/man-pages/man2/mount.2.html) and [`umount()`](https://man7.org/linux/man-pages/man2/umount.2.html) Linux system calls. These bind
published version 1.1.3, 2 days agoOpinionated wrapper around `@sentry/node`. Currently, the only difference is that it exports an async `init` function that automatically sets the release to the current Git revision, if available.
published version 3.0.1, 2 days agoThis package enables the transpilation and bundling of client-side assets, namely JavaScript.
published version 3.0.12, 2 days agoTools for loading and executing Postgres queries.
published version 2.1.9, 2 days ago- published version 2.1.2, 2 days ago
Provides a shared [Winston](https://github.com/winstonjs/winston) instance for all logging.
published version 2.0.11, 2 days ago- published version 2.0.11, 2 days ago
Uses Postgres row-level locks to grant exclusive access to resources.
published version 3.0.13, 2 days agoThis package runs two types of database migrations:
published version 3.0.13, 2 days agoA few helpful wrappers on top of the functionality from [`csv-stringify`](https://www.npmjs.com/package/csv-stringify).
published version 2.0.11, 2 days agoUtilities for fetching data from the [AWS EC2 Instance Metadata Service (IMDS)](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html).
published version 2.0.10, 2 days agoUtilities to help load configuration from various sources including a JSON file and AWS Secrets Manager. Config is made type-safe through a [Zod](https://github.com/colinhacks/zod) schema.
published version 3.0.11, 2 days ago- published version 2.0.13, 2 days ago
A package for generating signed tokens. Useful for CSRF tokens or generally to round-trip trusted data through an untrusted client.
published version 2.0.10, 2 days agoA collection of functions for sanitizing and escaping various values.
published version 2.0.11, 2 days agoAdds support for flash messages to Express applications.
published version 2.0.13, 2 days agoHelpful utilities for writing client-side vanilla JavaScript.
published version 2.2.7, 2 days agoThis package contains utilities that help us correctly configure AWS SDK clients.
published version 2.0.10, 2 days ago- published version 2.1.1, 2 days ago
The implementation borrows heavily from prior art such as [`express-session`](https://github.com/expressjs/session) and [`fastify-session`](https://github.com/fastify/session). However, the semantics and functionality have been changed to better suit Prai
published version 3.0.12, 2 days ago