Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitorluizc/bitty
🗃 A mono-repository with functional programming helpers, algebraic data types, util functions, types and even some micro frameworks in TypeScript.
https://github.com/vitorluizc/bitty
algebraic-data-types animation functional-programming maybe types typescript
Last synced: 7 days ago
JSON representation
🗃 A mono-repository with functional programming helpers, algebraic data types, util functions, types and even some micro frameworks in TypeScript.
- Host: GitHub
- URL: https://github.com/vitorluizc/bitty
- Owner: VitorLuizC
- Created: 2020-03-18T01:13:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T17:03:29.000Z (over 1 year ago)
- Last Synced: 2024-11-06T20:05:53.522Z (8 days ago)
- Topics: algebraic-data-types, animation, functional-programming, maybe, types, typescript
- Language: TypeScript
- Homepage:
- Size: 391 KB
- Stars: 30
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🗃 `@bitty`
A mono-repository with functional programming helpers, algebraic data types, util functions, types and even some micro-frameworks in TypeScript. They were designed to support multiple environments (even older browsers and ESM Node.js).
- 📦 Packages distributed in ESM, CommonJS, UMD and UMD _minified_ formats.
- âš¡ Lightweight, tree-shakeable and side-effects free packages.
- 🔋 Bateries included:
- Little to none dependencies.
- Almost every package work independently.
## Packages
Package | Description
------- | -----------
[`@bitty/animate`](https://github.com/VitorLuizC/animate) | Create and manage animation functions with browser's AnimationFrame API.
[`@bitty/create-request`](https://github.com/VitorLuizC/create-request) | Apply interceptors to `fetch` and create a custom request function.
[`@bitty/deferred`](./packages/deferred/README.md) | It provides a function to create [Deferred](https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred/README.md) objects. They contain a Promise and methods to imperatively resolve or reject it.
[`@bitty/either`](./packages/either/README.md) | An algebraic data type that represents a value of one of two possible types (a disjoint union).
[`@bitty/event-emitter`](https://github.com/VitorLuizC/event-emitter) | Emit and listen events in any class, object or function without messing them extending classes.
[`@bitty/falsy`](./packages/falsy/README.md) | Falsy helper functions and types for TypeScript.
[`@bitty/format-date`](https://github.com/VitorLuizC/format-date) | A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.
[`@bitty/get`](https://github.com/VitorLuizC/get) | A really small and type-safe (requires TypeScript >= 4.1.3) function, that gets a nested value from an object using a path string (like "a.b[0].d"). If value is 'undefined' or unreachable returns the placeholder instead.
[`@bitty/insist`](https://github.com/VitorLuizC/insist) | Insistently runs a callback and only resolves the promise when its result is truthy.
[`@bitty/json`](./packages/json/README.md) | Types and type-safe functions for JSON.
[`@bitty/maybe`](https://github.com/VitorLuizC/maybe) | An algebraic data type that is a container for an optional values.
[`@bitty/nullish`](./packages/nullish/README.md) | Nullish helper functions and types for TypeScript.
[`@bitty/pipe`](./packages/pipe/README.md) | A pipe function to perform function composition in LTR (Left-To-Right) direction.
[`@bitty/predicate`](./packages/predicate/README.md) | `Predicate` and `Refinement` types for TypeScript.## License
All the packages are released under **MIT License**.