0.19.3 • Published 4 months ago
@grogarden/util v0.19.3
@grogarden/util
JS utilities to complement the modern web platform 🦕 util.grogarden.org
design:
- kitchen-sink utilities library - sorry, we wish it weren't so, JS made us do it
- mix of JS module environments - browser-only, Node-only, universal
- mostly small, pure functions
- near-zero non-platform third party dependencies,
currently the one exception is
kleur
- all TypeScript, for styles and Svelte and SvelteKit see @fuz.dev/fuz
- complement the modern web platform, stay evergreen
- kinda minimal in many ways but also not
usage
// import full module paths:
import {type Result, unwrap} from '@grogarden/util/result.js';
import {random_int} from '@grogarden/util/random.js';
see the available modules at util.grogarden.org, src/lib/index.ts, and src/lib/exports.ts
build
npm run build
# or
gro build
test
For more see uvu
and Gro's test docs.
gro test
gro test filepattern1 filepatternB
gro test -- uvu --forwarded_args 'to uvu'
deploy
Deploy
(build, commit, and push) to the deploy
branch, e.g. for GitHub Pages:
npm run deploy
# or
gro deploy
credits 🐢🐢🐢
depends on kleur
made with Svelte ∙ SvelteKit ∙ Vite ∙ esbuild ∙ uvu ∙ TypeScript ∙ ESLint ∙ Prettier ∙ FeltUI ∙ Gro & more
license 🐦
0.19.3
4 months ago
0.19.2
4 months ago
0.19.1
4 months ago
0.19.0
4 months ago
0.18.2
5 months ago
0.18.3
5 months ago
0.18.1
5 months ago
0.18.0
5 months ago
0.17.0
6 months ago
0.16.1
6 months ago
0.16.0
6 months ago
0.15.4
6 months ago
0.15.3
6 months ago
0.15.2
7 months ago
0.15.1
7 months ago
0.15.0
8 months ago
0.14.0
8 months ago
0.13.1
8 months ago
0.13.0
8 months ago
0.12.0
8 months ago
0.11.0
8 months ago
0.10.1
8 months ago
0.10.0
8 months ago