Coder Social home page Coder Social logo

vitorluizc / bitty Goto Github PK

View Code? Open in Web Editor NEW
30.0 4.0 1.0 400 KB

๐Ÿ—ƒ A mono-repository with functional programming helpers, algebraic data types, util functions, types and even some micro frameworks in TypeScript.

JavaScript 14.05% TypeScript 84.62% Shell 1.33%
typescript functional-programming algebraic-data-types types animation maybe

bitty's Introduction

๐Ÿ—ƒ @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 Create and manage animation functions with browser's AnimationFrame API.
@bitty/create-request Apply interceptors to fetch and create a custom request function.
@bitty/deferred It provides a function to create Deferred objects. They contain a Promise and methods to imperatively resolve or reject it.
@bitty/either An algebraic data type that represents a value of one of two possible types (a disjoint union).
@bitty/event-emitter Emit and listen events in any class, object or function without messing them extending classes.
@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 An algebraic data type that is a container for an optional values.
@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 and Refinement types for TypeScript.

License

All the packages are released under MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.