Skip to main content

hofkit

· One min read
Gus
Editor
hofkit

hofkit (Higher Order Function toolKIT) is a modular functional utility library npm package for JavaScript & TypeScript.

This library collects frequently rewritten experimental functional wrappers for commonly used utility functions (either custom or from popular libraries such as lodash). These wrappers emphasized functional concepts (e.g., higher order functions, state purity, etc.) to provide functional benefits (e.g., less state, composition) whilst preserving compatibility with existing imperative approaches.

Through this flexibility, the toolkit aims to be reusable across projects for a wide variety of uses ranging from array & object manipulation (e.g., filtering object entries) to concurrency-controlled Promises.

Additional benefits include builtin type support, environment-specific modules (i.e., featureGroups that group functions to separate dependencies), live-reloadable per-function test suites, and auto-generated live-reloadable documentation.

Documentation Screenshot

hofkit Documentation Screenshot

Comments

Community Rules
This is a community. Please be constructive and polite in your comments and interactions. No toxic negativity.
Comments use GitHub via giscus. By interacting with comments, you consent to GitHub's data processing. See our Privacy Policy for more information.