@feltjs/util
TypeScript icon, indicating that this package has built-in type declarations

0.7.5Β β€’Β PublicΒ β€’Β Published

@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

npm i -D @feltjs/util

// 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

license 🐦

MIT

Install

npm i @feltjs/util

DownloadsWeekly Downloads

362

Version

0.7.5

License

MIT

Unpacked Size

107 kB

Total Files

105

Last publish

Collaborators

  • greatbacon
  • ryanatkn