Skip to content

Combines: console, test, types, json, snowflake, uuid, env

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

rpg-sage-creative/core-utils

Repository files navigation

rpg-sage-creative/core-utils

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.

src/console

These functions are designed for debugging/logging.

src/env

These functions are designed for environment variables.

src/json

These functions are designed for interacting with JSON objects. Included are bigint safe parse/stringify functions.

src/snowflake

These functions are designed for interacting with Discord snowflakes.

src/test

These functions are designed for unit testing.

src/types

These functions and objects are commonly reused objects, types, and related methods.

src/uuid

These functions are designed for interacting with UUIDs.

scripts

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.

Notes about tsdoc / jsdoc

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.

History

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.

About

Combines: console, test, types, json, snowflake, uuid, env

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published