This repo is a utils collection for RSC projects. It's purpose is simply to provide reusable code. It contains the utility logic most commonly used throughout RSC repos.
These functions are designed for debugging/logging.
These functions are designed for environment variables.
These functions are designed for interacting with JSON objects. Included are bigint safe parse/stringify functions.
These functions are designed for interacting with Discord snowflakes.
These functions are designed for unit testing.
These functions and objects are commonly reused objects, types, and related methods.
These functions are designed for interacting with UUIDs.
Included in this repo are scripts for building a repo, releasing a repo (creating a git tag), and testing a repo. Projects that depend on this repo for these features can see https://github.com/rpg-sage-creative/utils-template for how to implement them.
One of the actions performed by the build script is to create an index.ts
file in each descendant of /src
. These index.ts
files are simply a collection of export * from "";
for each .ts
file in the folder. Folders named "internal" will be excluded from these index.ts
folders, but they will have their own index.ts
folder created.
The build scripts included in this repo perform a dual pass build. One builds everything with an entire tsdoc. The second redoes the tsdoc files to remove any documentation with @internal
in the description.
It was created by combining console-utils
, test-utils
, and type-utils
into a single repo. Others repos were later added: env-utils
, json-utils
, snowflake-utils
, and uuid-utils
.