@feltjs/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
// you can import from the root:
import {type Result, unwrap, randomInt} from '@feltjs/util';
// or import full module paths:
import {type Result, unwrap} from '@feltjs/util/result.js';
import {randomInt} from '@feltjs/util/random.js';
see the available modules at util.felt.dev, 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