utility belt for JS ๐ฆ belt.ryanatkn.com
design:
- zero dependency kitchen-sink utilities library - sorry, I wish it weren't so, JS made me do it
- mix of JS module environments - browser-only, Node-only, universal
- mostly small pure functions
- all TypeScript, for styles and Svelte and SvelteKit see @ryanatkn/fuz
- complements the modern web platform, drops legacy quickly
- kinda minimal in many ways but also not, treeshakes well
// import full module paths:
import {type Result, unwrap} from '@ryanatkn/belt/result.js';
import {random_int} from '@ryanatkn/belt/random.js';
see the available modules at belt.ryanatkn.com, src/lib/index.ts, and src/lib/exports.ts
npm run build
# or
gro build
For more see uvu
and Gro's test docs.
gro test
gro test filepattern1 filepatternB
gro test -- uvu --forwarded_args 'to uvu'
Deploy
(build, commit, and push) to the deploy
branch, e.g. for GitHub Pages:
npm run deploy
# or
gro deploy