New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started
b

bitty

npm

64.26K

total weekly downloads

Packages

Current Co-maintainers

Former Co-maintainers

14 packages

@bitty/animate

Create and manage animation functions with AnimationFrame API.

@bitty/create-request

Apply interceptors in `fetch` to create a custom request functions.

@bitty/deferred

It provides a function to create Deferred objects. They contains a Promise and methods to imperatively resolve or reject it.

@bitty/either

Either monad implementation.

@bitty/event-emitter

Listen and emit events without dirty your classes, objects and functions with EventEmitter interface.

@bitty/falsy

Falsy helper functions and types for TypeScript.

@bitty/format-date

A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.

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

Insistently runs a callback and only resolves the promise when its result is truthy.

@bitty/json

Types and type-safe functions for JSON.

@bitty/maybe

Maybe

@bitty/nullish

Nullish helper functions and types for TypeScript.

@bitty/pipe

A pipe function to perform function composition in LTR (Left To Right) direction.

@bitty/predicate

Predicate helper functions and types for TypeScript.