0.19.3 • Published 1 year 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
1 year ago
0.19.2
1 year ago
0.19.1
1 year ago
0.19.0
1 year ago
0.18.2
1 year ago
0.18.3
1 year ago
0.18.1
2 years ago
0.18.0
2 years ago
0.17.0
2 years ago
0.16.1
2 years ago
0.16.0
2 years ago
0.15.4
2 years ago
0.15.3
2 years ago
0.15.2
2 years ago
0.15.1
2 years ago
0.15.0
2 years ago
0.14.0
2 years ago
0.13.1
2 years ago
0.13.0
2 years ago
0.12.0
2 years ago
0.11.0
2 years ago
0.10.1
2 years ago
0.10.0
2 years ago