0.5.3 • Published 9 months ago

@rdub/base v0.5.3

Weekly downloads
-
License
-
Repository
gitlab
Last release
9 months ago

@rdub/base

JS/TS utils; helper functions I've missed from standard libraries (and React)

  • a.tsx - Anchor component wrapper (sets target="_blank" and rel="noreferrer" for external URLs).
  • arr.ts - Array utils: Arr, concat, range
  • color-scheme.tsx - useColorScheme React hook for managing light/dark mode
  • console.ts - import-able time, timeEnd, log, warn, error
  • json.ts - fetchJson, loadJsonSync
  • math.ts - exports most of Math, also implements a clamp helper
  • objs.ts - typed helpers for mapping between objects and arrays, over keys/values/entries
  • singleton.ts - dedupe arrays, verify exactly one unique element, return it
  • socials/ - GitHub, GitLab, LinkedIn, ReadTheDocs logo components
  • state.ts - State<T, "name"> helper ({ name: T, setName: (t: T) => void })
  • str.ts - titlecase helper
  • time.ts - time, timeEnd, Timer
  • use-set.ts - useSet, useOptSet hooks for React
0.5.3

9 months ago

0.5.2

10 months ago

0.5.0

10 months ago

0.5.1

10 months ago

0.4.0

10 months ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago