0.5.0 • Published 1 year ago
@feltcoop/util v0.5.0
@feltcoop/util
a collection of JS utilities to complement the modern web platform 🦕🐋 util.felt.dev
design:
- kitchen-sink utilities library (sorry, we wish it weren't so)
- mix of JS module environments - browser-only, Node-only, universal
- near-zero non-platform third party dependencies,
currently the one exception is
kleur
- all typescript, no svelte or SvelteKit
- complement the modern web platform, stay evergreen
- kinda minimal in many ways but also not
usage
// a few things are exported from the root:
import {type Result, unwrap} from '@feltcoop/util';
// usually you'll import full module paths:
import {randomInt} from '@feltcoop/util/random.js';
see the available modules at util.felt.dev and src/lib/exports
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 ∙ Felt ∙ Gro & more