This commit is contained in:
Chris Wanstrath 2025-11-29 11:26:44 -08:00
parent 4875c08757
commit d0fccba180

View File

@ -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`: