From d0fccba1804e1b066690fcd135e9e22a8cc22769 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 29 Nov 2025 11:26:44 -0800 Subject: [PATCH] docs --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 5b0d11b..ef9435d 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,24 @@ import utils from "./shared/utils" Anything in `pub/` is served as-is. Simple stuff. +### utils + +`hype` includes helpful utils for your webapp: + +- capitalize +- darkenColor +- isDarkMode +- lightenColor +- rand +- randIndex +- randItem +- randomId +- randRange +- redirectBack +- transpile +- unique +- weightedRand + ## Setup 1. Add `dev` and `start` to `package.json`: